blk-stat: convert blk-stat bucket callback to signed
authorStephen Bates <sbates@raithlin.com>
Thu, 20 Apr 2017 21:29:16 +0000 (15:29 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 20 Apr 2017 21:29:16 +0000 (15:29 -0600)
commita37244e4cc5766af68004ad6249fcd0e4694b441
tree6c5cf6437a62483f2be5f5c924fbfecc7b6d3c3d
parentcaf7df12272118e0274c8353bcfeaf60c7743a47
blk-stat: convert blk-stat bucket callback to signed

In order to allow for filtering of IO based on some other properties
of the request than direction we allow the bucket function to return
an int.

If the bucket callback returns a negative do no count it in the stats
accumulation.

Signed-off-by: Stephen Bates <sbates@raithlin.com>
Fixed up Kyber scheduler stat callback.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-stat.c
block/blk-stat.h
block/kyber-iosched.c