]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: RDMA/isert: Fix a recently introduced regression related to logout
authorBart Van Assche <bvanassche@acm.org>
Thu, 16 Jan 2020 04:47:37 +0000 (20:47 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 21 Jan 2020 05:24:46 +0000 (00:24 -0500)
commitd37a3cebee56036789001dca319b36e4224b2b50
treec56d6bee447c80e9ccf0e1d3943a7a1bae866e52
parente9cfc48d4f7d00318b480b63475582a2d1d1e869
scsi: RDMA/isert: Fix a recently introduced regression related to logout

iscsit_close_connection() calls isert_wait_conn(). Due to commit
97665d88819f both functions call target_wait_for_sess_cmds() although that
last function should be called only once. Fix this by removing the
target_wait_for_sess_cmds() call from isert_wait_conn() and by only calling
isert_wait_conn() after target_wait_for_sess_cmds().

Fixes: 97665d88819f ("scsi: target: iscsi: Wait for all commands to finish before freeing a session").
Link: https://lore.kernel.org/r/20200116044737.19507-1-bvanassche@acm.org
Reported-by: Rahul Kundu <rahul.kundu@chelsio.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Tested-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Acked-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/infiniband/ulp/isert/ib_isert.c
drivers/target/iscsi/iscsi_target.c