Re: [PATCH v5] virtio_blk: Fix disk deletion hang on device surprise removal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 02-06-2025 08:14, Parav Pandit wrote:
When the PCI device is surprise removed, requests may not complete
the device as the VQ is marked as broken. Due to this, the disk
deletion hangs.

Fix it by aborting the requests when the VQ is broken.

With this fix now fio completes swiftly.
An alternative of IO timeout has been considered, however
when the driver knows about unresponsive block device, swiftly clearing
them enables users and upper layers to react quickly.

Verified with multiple device unplug iterations with pending requests in
virtio used ring and some pending with the device.

Fixes: 43bb40c5b926 ("virtio_pci: Support surprise removal of virtio pci device")
Cc:stable@xxxxxxxxxxxxxxx
Reported-by: Li RongQing<lirongqing@xxxxxxxxx>
Closes:https://urldefense.com/v3/__https://lore.kernel.org/virtualization/ c45dd68698cd47238c55fb73ca9b4741@xxxxxxxxx/__;!!ACWV5N9M2RV99hQ! OKusQ3sGH7nkVTy9MUDtaIS17UDtjabP3Lby9jTBdT3Ur38XLl2_DOFo0eVzx_dNeh16lD3Ss6ItE9eG$ Reviewed-by: Max Gurtovoy<mgurtovoy@xxxxxxxxxx>
Reviewed-by: Israel Rukshin<israelr@xxxxxxxxxx>
Signed-off-by: Parav Pandit<parav@xxxxxxxxxx>

look good to me.

Reviewed-by: Alok Tiwari <alok.a.tiwari@xxxxxxxxxx>

Thanks,
Alok




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux