From 363666407101489f76b0d092cdd2d9ed4a19d35a Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 6 Nov 2015 03:49:14 +0000 Subject: [PATCH] Various SCST events producers Prepared with help from Prasidh Srikanth git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6582 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_targ.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scst/src/scst_targ.c b/scst/src/scst_targ.c index 2c5c3e9ee..4f39cd43d 100644 --- a/scst/src/scst_targ.c +++ b/scst/src/scst_targ.c @@ -4492,6 +4492,7 @@ static int scst_translate_lun(struct scst_cmd *cmd) "unexisting LU (initiator %s, target %s)?", (unsigned long long int)cmd->lun, cmd->sess->initiator_name, cmd->tgt->tgt_name); + scst_event_queue_lun_not_found(cmd); } scst_put(cmd->cpu_cmd_counter); } @@ -5966,6 +5967,8 @@ static int scst_mgmt_cmd_init(struct scst_mgmt_cmd *mcmd) } out: + scst_event_queue_tm_fn_received(mcmd); + TRACE_EXIT_RES(res); return res; } @@ -7101,6 +7104,9 @@ bool scst_initiator_has_luns(struct scst_tgt *tgt, const char *initiator_name) res = !list_empty(&acg->acg_dev_list); + if (!res) + scst_event_queue_negative_luns_inquiry(tgt, initiator_name); + mutex_unlock(&scst_mutex); TRACE_EXIT_RES(res);