1
0
Fork 0

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>
zero-colors
Christoph Hellwig 2016-11-01 07:40:03 -06:00 committed by Jens Axboe
parent aa39ebd404
commit d71d9ae14a
1 changed files with 1 additions and 1 deletions

View File

@ -599,7 +599,7 @@ static inline void blkg_rwstat_add(struct blkg_rwstat *rwstat,
__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];
else
cnt = &rwstat->cpu_cnt[BLKG_RWSTAT_ASYNC];