OpenCloudOS-Kernel/drivers/infiniband/ulp
Nicholas Bellinger 1d19f7800d ib_srpt: Call target_sess_cmd_list_set_waiting during shutdown_session
Given that srpt_release_channel_work() calls target_wait_for_sess_cmds()
to allow outstanding se_cmd_t->cmd_kref a change to complete, the call
to perform target_sess_cmd_list_set_waiting() needs to happen in
srpt_shutdown_session()

Also, this patch adds an explicit call to srpt_shutdown_session() within
srpt_drain_channel() so that target_sess_cmd_list_set_waiting() will be
called in the cases where TFO->shutdown_session() is not triggered
directly by TCM.

Cc: Joern Engel <joern@logfs.org>
Cc: Roland Dreier <roland@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
2013-05-29 21:30:46 -07:00
..
ipoib InfiniBand/RDMA changes for the 3.10 merge window: 2013-05-08 15:29:48 -07:00
iser IB/iser: Add support for iser CM REQ additional info 2013-05-01 17:34:14 -07:00
isert iser-target: Add iSCSI Extensions for RDMA (iSER) target driver 2013-04-25 01:09:41 -07:00
srp IB/srp: Fail I/O requests if the transport is offline 2013-02-25 09:31:14 -08:00
srpt ib_srpt: Call target_sess_cmd_list_set_waiting during shutdown_session 2013-05-29 21:30:46 -07:00