Skip to content

Commit

Permalink
blk-cgroup: use op_is_sync to check for synchronous requests
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
  • Loading branch information
Christoph Hellwig authored and Jens Axboe committed Nov 1, 2016
1 parent aa39ebd commit d71d9ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/blk-cgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit d71d9ae

Please sign in to comment.