linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3 V2] iscsi cmd lifetime fixups/cleanups
@ 2020-12-16 18:55 Mike Christie
  2020-12-16 18:55 ` [PATCH 1/3] libiscsi: fix iscsi_prep_scsi_cmd_pdu error handling Mike Christie
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Mike Christie @ 2020-12-16 18:55 UTC (permalink / raw)
  To: lduncan, cleech, martin.petersen, linux-scsi, james.bottomley
  Cc: lutianxiong, linfeilong, liuzhiqiang26, haowenchao

The following patches were made over Linus's tree. Martin's staging
branches were missing fe0a8a95e7134d0b44cd407bc0085b9ba8d8fe31.

The patches are mix of cleanups and fixups. The first patch is
just a fix that was in the same code path as the second patch.

The second patch was originally mode to drop the taskqueuelock use, but
it also moved the running cmd cleanup code to the failure functions,
and that is needed by the 3rd patch.

The 3rd patch then takes a ref to the cmd in the EH and timer paths
or takes the back_lock, and utilizes the running cmd cleanup from the
2nd patch to handle an issue in bnx2i where it wants to sleep in the
cleanup_task callout and needs to know what locks are held.

V2:
- Take back_lock when looping over running cmds in iscsi_eh_cmd_timed_out
in case those complete while we are accessing them.



^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH 0/3] iscsi cmd lifetime fixups/cleanups
@ 2020-12-15 21:53 Mike Christie
  2020-12-15 21:53 ` [PATCH 3/3] libiscsi: fix iscsi_task use after free Mike Christie
  0 siblings, 1 reply; 8+ messages in thread
From: Mike Christie @ 2020-12-15 21:53 UTC (permalink / raw)
  To: lduncan, cleech, martin.petersen, linux-scsi, james.bottomley
  Cc: lutianxiong, linfeilong, liuzhiqiang26, haowenchao

The following patches were made over Linus's tree. Martin's staging
branches were missing fe0a8a95e7134d0b44cd407bc0085b9ba8d8fe31.

The patches are mix of cleanups and fixups. The first patch is
just a fix that was in the same code path as the second.

The second patch was originally mode to drop the taskqueuelock use, but
it also moved the running cmd cleanup code to the failure functions.

The 3rd patch then takes a ref to the cmd in the EH and timer paths
and utilizes the running cmd cleanup from the 2nd patch to handle
an issue in bnx2i where it wants to sleep in the cleanup_task callout
and needs to know what locks are held.


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

end of thread, other threads:[~2020-12-19 22:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16 18:55 [PATCH 0/3 V2] iscsi cmd lifetime fixups/cleanups Mike Christie
2020-12-16 18:55 ` [PATCH 1/3] libiscsi: fix iscsi_prep_scsi_cmd_pdu error handling Mike Christie
2020-12-16 18:55 ` [PATCH 2/3] libiscsi: drop taskqueuelock Mike Christie
2020-12-19 22:18   ` Mike Christie
2020-12-16 18:55 ` [PATCH 3/3] libiscsi: fix iscsi_task use after free Mike Christie
2020-12-17 17:49   ` Lee Duncan
  -- strict thread matches above, loose matches on Subject: below --
2020-12-15 21:53 [PATCH 0/3] iscsi cmd lifetime fixups/cleanups Mike Christie
2020-12-15 21:53 ` [PATCH 3/3] libiscsi: fix iscsi_task use after free Mike Christie
2020-12-16  7:38   ` Mike Christie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).