if (blkcg_policy_enabled(q, pol))
return 0;
- if (q->mq_ops) {
+ if (q->mq_ops)
blk_mq_freeze_queue(q);
- blk_mq_quiesce_queue(q);
- } else
+ else
blk_queue_bypass_start(q);
pd_prealloc:
if (!pd_prealloc) {
spin_unlock_irq(q->queue_lock);
out_bypass_end:
- if (q->mq_ops) {
+ if (q->mq_ops)
blk_mq_unfreeze_queue(q);
- blk_mq_start_stopped_hw_queues(q, true);
- } else
+ else
blk_queue_bypass_end(q);
if (pd_prealloc)
pol->pd_free_fn(pd_prealloc);
if (!blkcg_policy_enabled(q, pol))
return;
- if (q->mq_ops) {
+ if (q->mq_ops)
blk_mq_freeze_queue(q);
- blk_mq_quiesce_queue(q);
- } else
+ else
blk_queue_bypass_start(q);
spin_lock_irq(q->queue_lock);
spin_unlock_irq(q->queue_lock);
- if (q->mq_ops) {
+ if (q->mq_ops)
blk_mq_unfreeze_queue(q);
- blk_mq_start_stopped_hw_queues(q, true);
- } else
+ else
blk_queue_bypass_end(q);
}
EXPORT_SYMBOL_GPL(blkcg_deactivate_policy);