]> 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)
commitfe78b21488c1a3dbf20ff23f25c5719b0b030576
tree6c5cf6437a62483f2be5f5c924fbfecc7b6d3c3d
parent57d85a0b31e0c15383936b8d67f95964d1f7c84b
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