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

Jens Axboe <[email protected]>
Newsgroups org.kernel.vger.linux-block,org.kernel.vger.linux-kernel
Message-ID <178683851816.1984298.16963880204383175367.b4-ty@b4>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.