linux-brain/drivers/infiniband
Bart Van Assche 1ff739768a scsi: RDMA/isert: Fix a recently introduced regression related to logout
commit 04060db41178c7c244f2c7dcd913e7fd331de915 upstream.

iscsit_close_connection() calls isert_wait_conn(). Due to commit
e9d3009cb936 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: e9d3009cb936 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-29 15:02:38 +01:00
..
core RDMA/cma: Fix false error message 2020-01-27 14:46:47 +01:00
hw RDMA/hns: Fixs hw access invalid dma memory error 2020-01-27 14:46:39 +01:00
sw IB/rxe: Fix incorrect cache cleanup in error flow 2020-01-27 14:46:07 +01:00
ulp scsi: RDMA/isert: Fix a recently introduced regression related to logout 2020-01-29 15:02:38 +01:00
Kconfig RDMA/ucm: Mark UCM interface as BROKEN 2018-07-17 11:39:33 +02:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00