X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=block%2Fblk-cgroup.c;fp=block%2Fblk-cgroup.c;h=a229b94d53908aa35ff3f2d8d1fa3532df4c2899;hb=5addeae1bedc4c126b179f61e43e039bb373581f;hp=708dea92dac8c6037dd1716e3d1bccadf346abac;hpb=ecb6186cf78803663cbd7c70241bfe1af439ca03;p=linux-2.6-block.git 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 @@ -1061,26 +1061,6 @@ err_unlock: return PTR_ERR(blkg); } -/** - * 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