]> www.infradead.org Git - nvme.git/commit
block: track disk DEAD state automatically for modeling queue freeze lockdep
authorMing Lei <ming.lei@redhat.com>
Wed, 27 Nov 2024 13:51:28 +0000 (21:51 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Dec 2024 15:17:22 +0000 (08:17 -0700)
commit6f491a8d4b92d1a840fd9209cba783c84437d0b7
tree33758764e2e19d53d7298c0935478d6c4110af68
parentaff09dc1fd3a165289011ab23cc3b46978ec741c
block: track disk DEAD state automatically for modeling queue freeze lockdep

Now we only verify the outmost freeze & unfreeze in current context in case
that !q->mq_freeze_depth, so it is reliable to save disk DEAD state when
we want to lock the freeze queue since the state is one per-task variable
now.

Doing this way can kill lots of false positive when freeze queue is
called before adding disk[1].

[1] https://lore.kernel.org/linux-block/6741f6b2.050a0220.1cc393.0017.GAE@google.com/

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20241127135133.3952153-3-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
block/blk.h
block/elevator.c
block/genhd.c
include/linux/blkdev.h