提交 475a055e 编写于 作者: W weiping zhang 提交者: Jens Axboe

blk-throttle: use queue_is_rq_based

use queue_is_rq_based instead of open code.
Signed-off-by: Nweiping zhang <zhangweiping@didichuxing.com>
Signed-off-by: NJens Axboe <axboe@kernel.dk>
上级 f5ced52a
...@@ -2489,7 +2489,7 @@ void blk_throtl_register_queue(struct request_queue *q) ...@@ -2489,7 +2489,7 @@ void blk_throtl_register_queue(struct request_queue *q)
td->throtl_slice = DFL_THROTL_SLICE_HD; td->throtl_slice = DFL_THROTL_SLICE_HD;
#endif #endif
td->track_bio_latency = !q->mq_ops && !q->request_fn; td->track_bio_latency = !queue_is_rq_based(q);
if (!td->track_bio_latency) if (!td->track_bio_latency)
blk_stat_enable_accounting(q); blk_stat_enable_accounting(q);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册