Re: [PATCH 0/2] ublk: don't let one stuck device block control of all ublk devices

From: Jens Axboe

Date: Mon Nov 09 2026 - 16:42:30 EST



On Thu, 05 Nov 2026 00:25:04 +0500, Mark Korenberg wrote:
> If the filesystem on a ublk device is stuck, removing that device
> blocks in del_gendisk(), which syncs the filesystem. DEL_DEV holds the
> global ublk_ctl_mutex across the removal, so ADD_DEV and DEL_DEV of
> every other ublk device hang too, until reboot. It doesn't matter
> whether the server is alive: when it dies, the release work does the
> same syncing del_gendisk() under ub->mutex, and DEL_DEV waits for
> ub->mutex holding ublk_ctl_mutex.
>
> [...]

Applied, thanks!

[1/2] ublk: publish a new device by its id only once it is set up
commit: e5c463e5074a940c644d54d8fc29aba06709aab0
[2/2] ublk: don't take ublk_ctl_mutex in DEL_DEV
commit: 8067050e7226844fb32062b5cea947e5897d3d7e

Best regards,
--
Jens Axboe