Re: [PATCH] block: skip sync_blockdev() on surprise removal in bdev_mark_dead()
From: Chao S
Date: Tue May 26 2026 - 14:10:36 EST
Thanks Jens! I appreciate your work!.
Best,
Chao
On Tue, May 26, 2026 at 12:37 PM Jens Axboe <axboe@xxxxxxxxx> wrote:
>
>
> 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
>
>
>