diff options
author | Guoqing Jiang <guoqing.jiang@cloud.ionos.com> | 2019-12-12 18:52:00 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-12-12 19:26:55 +0300 |
commit | 5addeae1bedc4c126b179f61e43e039bb373581f (patch) | |
tree | e7bd7678878d22f0233e652941db4637fb6e7770 /block/blk-cgroup.c | |
parent | ecb6186cf78803663cbd7c70241bfe1af439ca03 (diff) | |
download | linux-5addeae1bedc4c126b179f61e43e039bb373581f.tar.xz |
blk-cgroup: remove blkcg_drain_queue
Since blk_drain_queue had already been removed, so this function
is not needed anymore.
Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-cgroup.c')
-rw-r--r-- | block/blk-cgroup.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index 708dea92dac8..a229b94d5390 100644 --- a/block/blk-cgroup.c +++ b/block/blk-cgroup.c @@ -1062,26 +1062,6 @@ err_unlock: } /** - * blkcg_drain_queue - drain blkcg part of request_queue - * @q: request_queue to drain - * - * Called from blk_drain_queue(). Responsible for draining blkcg part. - */ -void blkcg_drain_queue(struct request_queue *q) -{ - lockdep_assert_held(&q->queue_lock); - - /* - * @q could be exiting and already have destroyed all blkgs as - * indicated by NULL root_blkg. If so, don't confuse policies. - */ - if (!q->root_blkg) - return; - - blk_throtl_drain(q); -} - -/** * blkcg_exit_queue - exit and release blkcg part of request_queue * @q: request_queue being released * |