Re: [PATCH v3 3/3] scsi: mvumi: flush the event work before the host is freed

From: Yehyeong Lee

Date: Tue Nov 17 2026 - 09:05:27 EST


The wait is real. An event work that is still queued or running once
the interrupt is gone can only finish by timing out, so
mvumi_detach_one() and the mvumi_io_attach() failure path can take up
to 45 seconds when an event is outstanding. The work items run
concurrently on the per-CPU queue, so that is one timeout, not one per
event. Without this patch the same work runs on the freed host instead.

The APICDB0_EVENT after CDB_CORE_SHUTDOWN is not new: without this patch
the event work can submit it at any point during or after
mvumi_detach_one().

Both go away if removal first stops the work from issuing commands and
drains it before disable_intr(), so that a command in flight still gets
its interrupt. I will send that as a separate patch on top of this
series rather than respin it.

Best regards,
Yehyeong Lee