public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix multiple iscsi session unbind event sent to userspace
@ 2022-04-14  1:49 Wenchao Hao
  2022-04-14  1:49 ` [PATCH 1/2] scsi: iscsi: introduce session UNBOUND state to avoid multiple unbind event Wenchao Hao
  2022-04-14  1:49 ` [PATCH 2/2] iscsi: set session to FREE state after unbind session in remove session Wenchao Hao
  0 siblings, 2 replies; 8+ messages in thread
From: Wenchao Hao @ 2022-04-14  1:49 UTC (permalink / raw)
  To: Mike Christie, Lee Duncan, Chris Leech, James E . J . Bottomley,
	Martin K . Petersen, open-iscsi, linux-scsi, linux-kernel
  Cc: linfeilong, Wenchao Hao

kernel would send ISCSI_KEVENT_UNBIND_SESSION twice to userspace, for
open-iscsi, this would trigger iscsi_stop twice. We should fix this issue.

Here introduced a new session state ISCSI_SESSION_UNBOUND to address it.
Once session state is ISCSI_KEVENT_UNBIND_SESSION, it means
__iscsi_unbind_session() has been called for this session and do not need
to execute any more.

Reference:https://github.com/open-iscsi/open-iscsi/issues/338

Wenchao Hao (2):
  scsi: iscsi: introduce session UNBOUND state to avoid multiple unbind
    event
  iscsi: set session to FREE state after unbind session in remove
    session

 drivers/scsi/scsi_transport_iscsi.c | 45 +++++++++++++++++++++--------
 include/scsi/scsi_transport_iscsi.h |  1 +
 2 files changed, 34 insertions(+), 12 deletions(-)

-- 
2.32.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-04-15 15:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-14  1:49 [PATCH 0/2] Fix multiple iscsi session unbind event sent to userspace Wenchao Hao
2022-04-14  1:49 ` [PATCH 1/2] scsi: iscsi: introduce session UNBOUND state to avoid multiple unbind event Wenchao Hao
2022-04-14 15:22   ` Mike Christie
2022-04-15  9:33     ` Wenchao Hao
2022-04-14  1:49 ` [PATCH 2/2] iscsi: set session to FREE state after unbind session in remove session Wenchao Hao
2022-04-14 15:30   ` Mike Christie
2022-04-15  9:40     ` Wenchao Hao
2022-04-15 15:17       ` Mike Christie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox