Re: [PATCH v2 1/2] block: set QUEUE_FLAG_DYING unconditionally in blk_mark_disk_dead()

From: Jens Axboe

Date: Sat Aug 15 2026 - 20:05:10 EST



On Wed, 12 Aug 2026 11:59:04 +0000, 胡连勤 wrote:
> Disks created via blk_mq_alloc_disk_for_queue() (e.g. SCSI SD disks)
> do not have GD_OWNS_QUEUE set. Currently __blk_mark_disk_dead() only
> sets QUEUE_FLAG_DYING when GD_OWNS_QUEUE is set, so for such disks
> blk_queue_enter() and __bio_queue_enter() cannot detect the dying
> state via blk_queue_dying() and remain blocked waiting for I/O that
> will never complete after surprise removal.
>
> [...]

Applied, thanks!

[1/2] block: set QUEUE_FLAG_DYING unconditionally in blk_mark_disk_dead()
commit: 7e9a46004b471eaf69b082c473d865316a4158e0

Best regards,
--
Jens Axboe