Re: [PATCH] block: skip sync_blockdev() on surprise removal in bdev_mark_dead()

From: Jens Axboe

Date: Tue May 26 2026 - 12:38:21 EST



On Fri, 22 May 2026 18:00:25 -0400, Chao Shi wrote:
> bdev_mark_dead()'s @surprise == true means the device is already gone.
> The filesystem callback fs_bdev_mark_dead() honours this and skips
> sync_filesystem(), but the bare block device path (no ->mark_dead op)
> lost its !surprise guard when the holder ->mark_dead callback was wired
> up (see Fixes), and now calls sync_blockdev() unconditionally, which can
> hang forever waiting on writeback that can no longer complete.
>
> [...]

Applied, thanks!

[1/1] block: skip sync_blockdev() on surprise removal in bdev_mark_dead()
commit: 304f384f34af98a205086ce67331cad4fea6504d

Best regards,
--
Jens Axboe