linux-stable/drivers/scsi/bnx2i
Mike Christie 891e2639de scsi: iscsi: Stop queueing during ep_disconnect
During ep_disconnect we have been doing iscsi_suspend_tx/queue to block new
I/O but every driver except cxgbi and iscsi_tcp can still get I/O from
__iscsi_conn_send_pdu() if we haven't called iscsi_conn_failure() before
ep_disconnect. This could happen if we were terminating the session, and
the logout timed out before it was even sent to libiscsi.

Fix the issue by adding a helper which reverses the bind_conn call that
allows new I/O to be queued. Drivers implementing ep_disconnect can use this
to make sure new I/O is not queued to them when handling the disconnect.

Link: https://lore.kernel.org/r/20210525181821.7617-3-michael.christie@oracle.com
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2021-06-02 01:28:19 -04:00
..
57xx_iscsi_constants.h
57xx_iscsi_hsi.h
bnx2i.h scsi: bnx2i: Convert timers to use timer_setup() 2017-10-27 02:22:00 -07:00
bnx2i_hwi.c scsi: bnx2i: Make bnx2i_process_iscsi_error() simpler and more robust 2021-03-24 22:21:31 -04:00
bnx2i_init.c scsi: bnx2i: Remove unnecessary mutex_init() 2020-09-22 20:21:02 -04:00
bnx2i_iscsi.c scsi: iscsi: Stop queueing during ep_disconnect 2021-06-02 01:28:19 -04:00
bnx2i_sysfs.c scsi: bnx2i: Fix bnx2i_set_ccell_info()'s name in description 2021-03-15 22:28:59 -04:00
Kconfig scsi: bnx2i: Requires MMU 2020-12-02 12:59:04 -05:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00