[PATCH v3 0/3] scsi: mvumi: do not free or reuse buffers a timed-out command left with the device

From: Yehyeong Lee

Date: Tue Nov 17 2026 - 08:42:57 EST


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@xxxxxxxxxxxxxxxxxx/

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@xxxxxxxxxxxxxxxxxx/
v2:
https://lore.kernel.org/all/20261115122153.1446810-1-yhlee@xxxxxxxxxxxxxxxxxx/

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