> From: Jia Jia <[email protected]> > > vhost_scsi_send_evt() is called with the event virtqueue mutex held. > If the worker is gone, the fallback currently calls > vhost_scsi_complete_events(), which tries to acquire the same mutex again > and deadlocks the caller. > > Split event completion into a helper for callers that already hold the > mutex and a locking wrapper for the event worker. Use the helper on the > fallback path. > > Link: https://lore.kernel.org/all/[email protected]/ > Fixes: b1b2ce58ed23 ("vhost-scsi: Handle vhost_vq_work_queue failures for > events") > Signed-off-by: Jia Jia <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=2
