All of lore.kernel.org
 help / color / mirror / Atom feed
* iscsi error handler fixes
@ 2021-05-23 17:57 Mike Christie
  2021-05-23 17:57 ` [PATCH 01/28] scsi: iscsi: Add task completion helper Mike Christie
                   ` (27 more replies)
  0 siblings, 28 replies; 37+ messages in thread
From: Mike Christie @ 2021-05-23 17:57 UTC (permalink / raw)
  To: lduncan, cleech, njavali, mrangankar, GR-QLogic-Storage-Upstream,
	martin.petersen, linux-scsi, jejb

The following patches were made over Martin's 5.14 branch. They focus on
iscsi and scsi error handler bugs. This set combines the 2 patchsets I've
been posting to hopefully make it easier to backport just the in-kernel
fixes.

in-kernel conn failure handling fixes
-------------------------------------
V4:
- Fix case where we get multiple events for the same root issue, and userspace
and the kernel get out of sync due to multiple stops/cleanups

V3:
- Rebase over
https://urldefense.com/v3/__https://lore.kernel.org/linux-scsi/20210424220603.123703-1-michael.christie@oracle.com/T/*t__;Iw!!GqivPVa7Brio!NdLMhOLAuEkbeyD-V8vbq1PDCQp51g1-HKalQU_YRA2dNB9qsEP4DAN8HvS0Dkwpflw-$
- Add fix for if we are doing offload boot and hit a conn failure at the
same time userspace is syncing up it's state and doing a relogin.
- Drop RFC as google has tested.

V2:
- Handle second part of #4 above and fix missing locking
- Include iscsi_tcp kernel sock shutdown patch

libiscsi and qedi TMF fixes
---------------------------
V5:
- Reduce number of error events sent for the same issue and handle
when libiscsi sends error events before we evern have a valid conn
binding.
- Drop tmf state check patch because we already were checking that
and qedi's session blocking was just plain not needed
- Drop cmd wait patch and replace with conn refcount patch
- Fix case where session reset could access a freed conn by grabbing
a ref to conn
- Have libiscsi handle iscsi_task refcounts during aborts for the
drivers

V4:
- Rm unused rtid variable in qedi
- Added a default case in TMF switch just in case people do not like
not having it.

V3:
- Fix u16 initialization and test.
- Fix bool return value use.
- Added patches for cases where EH is running then userspace terminates
the connection without removing the target first.
- Made patch that stops IO during ep_disconnect more driver friendly
by handling if the ep is bound or not.

V2:
- Dropped patch that reverted the in-kernel conn failure handling. I
posted a full patchset to fix that separately.
- Modfied the tmf vs cmd queueing patch. The RFC patch only supported
qedi and offload drivers. iscsi_tcp/cxgbgi do not need it.
- Added patch for another issue found where cmds can still be queued to the
driver while it does ep_disconnect.






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

end of thread, other threads:[~2021-05-24 18:45 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-23 17:57 iscsi error handler fixes Mike Christie
2021-05-23 17:57 ` [PATCH 01/28] scsi: iscsi: Add task completion helper Mike Christie
2021-05-23 17:57 ` [PATCH 02/28] scsi: iscsi: Stop queueing during ep_disconnect Mike Christie
2021-05-23 17:57 ` [PATCH 03/28] scsi: iscsi: Drop suspend calls from ep_disconnect Mike Christie
2021-05-23 17:57 ` [PATCH 04/28] scsi: iscsi: Force immediate failure during shutdown Mike Christie
2021-05-24 16:00   ` Lee Duncan
2021-05-23 17:57 ` [PATCH 05/28] scsi: iscsi: Use system_unbound_wq for destroy_work Mike Christie
2021-05-23 17:57 ` [PATCH 06/28] scsi: iscsi: Rel ref after iscsi_lookup_endpoint Mike Christie
2021-05-23 17:57 ` [PATCH 07/28] scsi: iscsi: Fix in-kernel conn failure handling Mike Christie
2021-05-24 18:22   ` Lee Duncan
2021-05-23 17:57 ` [PATCH 08/28] scsi: iscsi_tcp: Set no linger Mike Christie
2021-05-23 17:57 ` [PATCH 09/28] scsi: iscsi_tcp: Start socket shutdown during conn stop Mike Christie
2021-05-23 17:57 ` [PATCH 10/28] scsi: iscsi: Add iscsi_cls_conn refcount helpers Mike Christie
2021-05-24 18:34   ` Lee Duncan
2021-05-23 17:57 ` [PATCH 11/28] scsi: iscsi: Have abort handler get ref to conn Mike Christie
2021-05-24 18:36   ` Lee Duncan
2021-05-23 17:57 ` [PATCH 12/28] scsi: iscsi: Get ref to conn during reset handling Mike Christie
2021-05-24 18:37   ` Lee Duncan
2021-05-23 17:57 ` [PATCH 13/28] scsi: iscsi: Fix conn use after free during resets Mike Christie
2021-05-23 17:57 ` [PATCH 14/28] scsi: iscsi: Fix shost->max_id use Mike Christie
2021-05-23 17:57 ` [PATCH 15/28] scsi: iscsi: Fix completion check during abort races Mike Christie
2021-05-24 18:38   ` Lee Duncan
2021-05-23 17:57 ` [PATCH 16/28] scsi: iscsi: Flush block work before unblock Mike Christie
2021-05-24 18:43   ` Lee Duncan
2021-05-23 17:57 ` [PATCH 17/28] scsi: iscsi: Hold task ref during TMF timeout handling Mike Christie
2021-05-24 18:45   ` Lee Duncan
2021-05-23 17:57 ` [PATCH 18/28] scsi: iscsi: Move pool freeing Mike Christie
2021-05-23 17:57 ` [PATCH 19/28] scsi: qedi: Fix null ref during abort handling Mike Christie
2021-05-23 17:57 ` [PATCH 20/28] scsi: qedi: Fix race during abort timeouts Mike Christie
2021-05-23 17:57 ` [PATCH 21/28] scsi: qedi: Fix use after free during abort cleanup Mike Christie
2021-05-23 17:57 ` [PATCH 22/28] scsi: qedi: Fix TMF tid allocation Mike Christie
2021-05-23 17:57 ` [PATCH 23/28] scsi: qedi: Use GFP_NOIO for TMF allocation Mike Christie
2021-05-23 17:57 ` [PATCH 24/28] scsi: qedi: Fix TMF session block/unblock use Mike Christie
2021-05-23 17:57 ` [PATCH 25/28] scsi: qedi: Fix cleanup " Mike Christie
2021-05-23 17:57 ` [PATCH 26/28] scsi: qedi: Pass send_iscsi_tmf task to abort Mike Christie
2021-05-23 17:57 ` [PATCH 27/28] scsi: qedi: Complete TMF works before disconnect Mike Christie
2021-05-23 17:57 ` [PATCH 28/28] scsi: qedi: Wake up if cmd_cleanup_req is set Mike Christie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.