diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-10-11 17:46:00 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-11-07 13:42:32 -0700 |
commit | 2cdf2caecda6cb16c24c6bdd2484d4cec99cfbb3 (patch) | |
tree | 5aba91a63e2d8562ffa3132fac57eebcf426a302 /block/blk-cgroup.c | |
parent | 3c7741567b8188f55e3704e56bed96460bf8d396 (diff) | |
download | linux-stable-2cdf2caecda6cb16c24c6bdd2484d4cec99cfbb3.tar.gz linux-stable-2cdf2caecda6cb16c24c6bdd2484d4cec99cfbb3.tar.bz2 linux-stable-2cdf2caecda6cb16c24c6bdd2484d4cec99cfbb3.zip |
blk-cgroup: remove legacy queue bypassing
We only support mq devices now.
Reviewed-by: Hannes Reinecke <hare@suse.com>
Tested-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-cgroup.c')
-rw-r--r-- | block/blk-cgroup.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index c630e02836a8..41b2470042d1 100644 --- a/block/blk-cgroup.c +++ b/block/blk-cgroup.c @@ -1398,8 +1398,6 @@ int blkcg_activate_policy(struct request_queue *q, if (q->mq_ops) blk_mq_freeze_queue(q); - else - blk_queue_bypass_start(q); pd_prealloc: if (!pd_prealloc) { pd_prealloc = pol->pd_alloc_fn(GFP_KERNEL, q->node); @@ -1439,8 +1437,6 @@ pd_prealloc: out_bypass_end: if (q->mq_ops) blk_mq_unfreeze_queue(q); - else - blk_queue_bypass_end(q); if (pd_prealloc) pol->pd_free_fn(pd_prealloc); return ret; @@ -1465,8 +1461,6 @@ void blkcg_deactivate_policy(struct request_queue *q, if (q->mq_ops) blk_mq_freeze_queue(q); - else - blk_queue_bypass_start(q); spin_lock_irq(q->queue_lock); @@ -1485,8 +1479,6 @@ void blkcg_deactivate_policy(struct request_queue *q, if (q->mq_ops) blk_mq_unfreeze_queue(q); - else - blk_queue_bypass_end(q); } EXPORT_SYMBOL_GPL(blkcg_deactivate_policy); |