vhost-scsi: Fix management operation hangs
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | vhost-scsi: Hold tv_tpg_mutex when decrementing tv_tpg_vhost_countdrivers/ | +2 | 0 replies | |
| 2/5 | vhost-scsi: Drop vhost_scsi_flush during endpoint clearingdrivers/ | +1 | 0 replies | |
| 3/5 | vhost-scsi: Remove vhost_scsi_mutex from port link/unlinkdrivers/ | +1 | 1 reply | |
| 4/5 | vhost-scsi: Delay releasing our refcount on the tpgdrivers/ | +37 | 0 replies | |
| 5/5 | vhost-scsi: Reduce vhost_scsi_mutex usedrivers/ | +5 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/5] vhost-scsi: Fix management operation hangs
The following patches were made over Linus tree and also apply over mst tree's vhost branch. The patches fix an issue where management operations like LUN mapping/unmapping and device addition hang for 30 seconds or up to N minutes depending on the device.
The problem is that we use a global mutex to protect the list of tpgs but we hold that mutex during those management operations. So if you are just trying to add another device, it will have to wait on another device if we are in the middle of clearing it's endpoint and it's waiting on hung IO.
This patchset fixes up the ordering of how we flush IO and release refcounts so we don't need to always hold the mutex.