]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf1232067e31ba9f5ea6842577aae788ed70dfc1d
tree6c5cf6437a62483f2be5f5c924fbfecc7b6d3c3d
parentaf9512e307d58ac9fe340f3339a7bcd5eb348f26
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