projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5ced52
)
blk-throttle: use queue_is_rq_based
author
weiping zhang
<zhangweiping@didichuxing.com>
Fri, 19 Jan 2018 23:34:25 +0000
(07:34 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Sat, 20 Jan 2018 04:10:20 +0000
(21:10 -0700)
use queue_is_rq_based instead of open code.
Signed-off-by: weiping zhang <zhangweiping@didichuxing.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-throttle.c
patch
|
blob
|
history
diff --git
a/block/blk-throttle.c
b/block/blk-throttle.c
index
e136f5e
..
c475f0f
100644
(file)
--- a/
block/blk-throttle.c
+++ b/
block/blk-throttle.c
@@
-2489,7
+2489,7
@@
void blk_throtl_register_queue(struct request_queue *q)
td->throtl_slice = DFL_THROTL_SLICE_HD;
#endif
- td->track_bio_latency = !q
->mq_ops && !q->request_fn
;
+ td->track_bio_latency = !q
ueue_is_rq_based(q)
;
if (!td->track_bio_latency)
blk_stat_enable_accounting(q);
}