Linux SCSI subsystem development
 help / color / mirror / Atom feed
* [PATCH v3 0/3] scsi: mvumi: do not free or reuse buffers a timed-out command left with the device
@ 2026-11-17 13:42 Yehyeong Lee
  2026-11-17 13:42 ` [PATCH v3 1/3] scsi: mvumi: stop the controller bus-mastering before freeing its buffers Yehyeong Lee
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Yehyeong Lee @ 2026-11-17 13:42 UTC (permalink / raw)
  To: mkp, James.Bottomley; +Cc: linux-scsi, linux-kernel, zilin

1/3 stops bus-mastering before mvumi_detach_one() frees the buffers the
controller was given.  2/3 keeps a timed-out internal command's buffers
until then and stops the probe loop from reusing them.  3/3 waits for
the event work before the host is freed.

v2 -> v3, from the Sashiko review of v2:
- 2/3: free the mhba_dev_list entries an aborted probe leaves behind.
- 3/3: clear bus-mastering before mvumi_release_fw() on the probe error
  path.

Left for separate patches: the DMA address rebuilt in
mvumi_delete_internal_cmd(), which 7/9 of the series below removes; the
unlocked sync_cmd test in mvumi_issue_blocked_cmd(); and the same
bus-mastering order in mvumi_init_fw()'s error path.
  https://lore.kernel.org/all/20261015045213.3975845-1-yhlee@isslab.korea.ac.kr/

This conflicts with that 7/9 only in 2/3; I will rebase whichever goes
in second.  I have no mvumi hardware; this was checked with a KUnit
model.

v1:
  https://lore.kernel.org/all/20261114014430.489668-1-yhlee@isslab.korea.ac.kr/
v2:
  https://lore.kernel.org/all/20261115122153.1446810-1-yhlee@isslab.korea.ac.kr/

Best regards,
Yehyeong Lee

Yehyeong Lee (3):
  scsi: mvumi: stop the controller bus-mastering before freeing its
    buffers
  scsi: mvumi: quarantine a timed-out internal command's buffers
  scsi: mvumi: flush the event work before the host is freed

 drivers/scsi/mvumi.c | 97 ++++++++++++++++++++++++++++++++++++--------
 drivers/scsi/mvumi.h |  3 ++
 2 files changed, 84 insertions(+), 16 deletions(-)


base-commit: 23c62304dde29abe92013d85910d03a77dada35d
-- 
2.43.0


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

end of thread, other threads:[~2026-11-17 14:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-17 13:42 [PATCH v3 0/3] scsi: mvumi: do not free or reuse buffers a timed-out command left with the device Yehyeong Lee
2026-11-17 13:42 ` [PATCH v3 1/3] scsi: mvumi: stop the controller bus-mastering before freeing its buffers Yehyeong Lee
2026-11-17 13:42 ` [PATCH v3 2/3] scsi: mvumi: quarantine a timed-out internal command's buffers Yehyeong Lee
2026-11-17 13:42 ` [PATCH v3 3/3] scsi: mvumi: flush the event work before the host is freed Yehyeong Lee
2026-11-17 13:57   ` sashiko-bot
2026-11-17 14:05     ` Yehyeong Lee

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