summaryrefslogtreecommitdiffstats
path: root/block/blk-wbt.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2016-11-08 05:32:37 +0100
committerJens Axboe <axboe@fb.com>2016-11-10 21:53:26 +0100
commitcf43e6be865a582ba66ee4747ae27a0513f6bba1 (patch)
tree53b71dd2f456e4880428683631fd09c9dc0747a5 /block/blk-wbt.c
parentblock: cfq_cpd_alloc() should use @gfp (diff)
downloadlinux-cf43e6be865a582ba66ee4747ae27a0513f6bba1.tar.xz
linux-cf43e6be865a582ba66ee4747ae27a0513f6bba1.zip
block: add scalable completion tracking of requests
For legacy block, we simply track them in the request queue. For blk-mq, we track them on a per-sw queue basis, which we can then sum up through the hardware queues and finally to a per device state. The stats are tracked in, roughly, 0.1s interval windows. Add sysfs files to display the stats. The feature is off by default, to avoid any extra overhead. In-kernel users of it can turn it on by setting QUEUE_FLAG_STATS in the queue flags. We currently don't turn it on if someone just reads any of the stats files, that is something we could add as well. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-wbt.c')
0 files changed, 0 insertions, 0 deletions