mbox series

[0/3] fixes related to iSCSI Time2Retain timer

Message ID 20221003202723.22714-1-d.bogdanov@yadro.com
Headers show
Series fixes related to iSCSI Time2Retain timer | expand

Message

Dmitry Bogdanov Oct. 3, 2022, 8:27 p.m. UTC
The patchset based on 6.1/scsi-queue. It fixes two bugs in iSCSI about
Time2Retain timer handling - when a session has no connections and it is
waiting for new connection to recovery the session.

The first two patches fixes WARN due to wait_for_completion in timer
context and possible(in cxgbit actual) BUG due to some sleepable things
in the iscsi transport drivers.

The third patch fixes session hanging when the session witn Time2Retain
timer started is forced to close due to ACL removal or TPG disable/delete.

Dmitry Bogdanov (3):
  target: iscsi: schedule close_session at timeout
  target: iscsi: forbid call iscsit_close_session() from atomic context
  target: iscsi: close session without connections

 drivers/target/iscsi/iscsi_target.c       | 35 +++++++++++++++--------
 drivers/target/iscsi/iscsi_target.h       |  3 +-
 drivers/target/iscsi/iscsi_target_erl0.c  |  4 ++-
 drivers/target/iscsi/iscsi_target_login.c |  1 +
 drivers/target/iscsi/iscsi_target_util.c  |  5 +---
 drivers/target/iscsi/iscsi_target_util.h  |  2 +-
 include/target/iscsi/iscsi_target_core.h  |  1 +
 7 files changed, 32 insertions(+), 19 deletions(-)