blk-wbt: add wbt_any_inflight()
authorJens Axboe <axboe@kernel.dk>
Thu, 19 Oct 2017 17:37:00 +0000 (11:37 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 19 Oct 2017 17:37:00 +0000 (11:37 -0600)
commit16f1477ebeeef4170f1f16eb66ad565daecdc7a8
tree657edf154f598bf303ec680a245d460779f50f9b
parent9974ae56e3da12c27d5ff55c54962c98397017f5
blk-wbt: add wbt_any_inflight()

Some callsites care about the specific number of writes inflight,
others only care if any writes are inflight or not. In preparation
for increasing the number of wait buckets, add wbt_any_inflight()
to avoid iterating and checking more buckets than we need.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-wbt.c
block/blk-wbt.h