diff options
author | Christoph Hellwig <hch@lst.de> | 2022-06-19 08:05:51 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-06-28 06:30:26 -0600 |
commit | 6f8191fdf41d3a53cc1d63fe2234e812c55a0092 (patch) | |
tree | 6d945fbe71814027c249acb00b86c6f35e6adfda /block/blk-sysfs.c | |
parent | 0e3534022f26ae51f7cf28347a253230604b6f4e (diff) | |
download | linux-rpi-6f8191fdf41d3a53cc1d63fe2234e812c55a0092.tar.gz linux-rpi-6f8191fdf41d3a53cc1d63fe2234e812c55a0092.tar.bz2 linux-rpi-6f8191fdf41d3a53cc1d63fe2234e812c55a0092.zip |
block: simplify disk shutdown
Set the queue dying flag and call blk_mq_exit_queue from del_gendisk for
all disks that do not have separately allocated queues, and thus remove
the need to call blk_cleanup_queue for them.
Rename blk_cleanup_disk to blk_mq_destroy_queue to make it clear that
this function is intended only for separately allocated blk-mq queues.
This saves an extra queue freeze for devices without a separately
allocated queue.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20220619060552.1850436-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-sysfs.c')
-rw-r--r-- | block/blk-sysfs.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c index 69e53d1a4f0e..9b211e519de8 100644 --- a/block/blk-sysfs.c +++ b/block/blk-sysfs.c @@ -755,11 +755,6 @@ static void blk_free_queue_rcu(struct rcu_head *rcu_head) * decremented with blk_put_queue(). Once the refcount reaches 0 this function * is called. * - * For drivers that have a request_queue on a gendisk and added with - * __device_add_disk() the refcount to request_queue will reach 0 with - * the last put_disk() called by the driver. For drivers which don't use - * __device_add_disk() this happens with blk_cleanup_queue(). - * * Drivers exist which depend on the release of the request_queue to be * synchronous, it should not be deferred. * |