blk-cgroup: use op_is_sync to check for synchronous requests
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
parent
aa39ebd404
commit
d71d9ae14a
|
@ -599,7 +599,7 @@ static inline void blkg_rwstat_add(struct blkg_rwstat *rwstat,
|
||||||
|
|
||||||
__percpu_counter_add(cnt, val, BLKG_STAT_CPU_BATCH);
|
__percpu_counter_add(cnt, val, BLKG_STAT_CPU_BATCH);
|
||||||
|
|
||||||
if (op & REQ_SYNC)
|
if (op_is_sync(op))
|
||||||
cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_SYNC];
|
cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_SYNC];
|
||||||
else
|
else
|
||||||
cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_ASYNC];
|
cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_ASYNC];
|
||||||
|
|
Loading…
Reference in a new issue