]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: Do not invoke queue operations on a dead queue
authorBart Van Assche <bart.vanassche@sandisk.com>
Thu, 4 May 2017 07:31:29 +0000 (00:31 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 4 May 2017 14:23:39 +0000 (08:23 -0600)
commit534ab03ee9c1ac0fa0e12c6892d9a256d529952e
tree928660479764e5f64aa60ea5492dde310de268d7
parentebcd093b420d87a8fd6d57dc30cf750769bb72bc
blk-mq: Do not invoke queue operations on a dead queue

In commit fc49e7e162f7 ("blk-mq: Unregister debugfs attributes
earlier"), we shuffled the debugfs cleanup around so that the "state"
attribute was removed before we freed the blk-mq data structures.
However, later changes are going to undo that, so we need to explicitly
disallow running a dead queue.

[Omar: rebased and updated commit message]
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-debugfs.c