diff options
author | Christoph Hellwig <hch@lst.de> | 2022-03-08 08:51:59 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-03-09 05:40:01 +0300 |
commit | 28883074fc104f16ab181207d556ab75df6c6526 (patch) | |
tree | df4ea7c1faaffe2ffc3399a4ecf8db52e9596008 /block/genhd.c | |
parent | 28ce942fa2d5d80af5367ba9d39f2e0b4af37bfd (diff) | |
download | linux-28883074fc104f16ab181207d556ab75df6c6526.tar.xz |
block: do more work in elevator_exit
Move the calls to ioc_clear_queue and blk_mq_sched_free_rqs into
elevator_exit. Except for one call where we know we can't have io_cq
structures yet these always go together, and that extra call in an
error path is harmless.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220308055200.735835-14-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/genhd.c')
-rw-r--r-- | block/genhd.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/block/genhd.c b/block/genhd.c index 73705a749ea9..857e0a54da7d 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -1115,10 +1115,7 @@ static void disk_release_mq(struct request_queue *q) * cgroup controller. */ if (q->elevator) { - ioc_clear_queue(q); - mutex_lock(&q->sysfs_lock); - blk_mq_sched_free_rqs(q); elevator_exit(q); mutex_unlock(&q->sysfs_lock); } |