summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-05-27 07:24:04 +0200
committerJens Axboe <axboe@kernel.dk>2020-05-27 13:21:23 +0200
commit956d510ee78caebc83c0eaeb892db5b239a36a06 (patch)
treefc0885d84a077101a601828ca2d3d8364c443b60 /drivers/block
parentblock: remove the disk and queue NULL checks in blkdev_issue_flush (diff)
downloadlinux-956d510ee78caebc83c0eaeb892db5b239a36a06.tar.xz
linux-956d510ee78caebc83c0eaeb892db5b239a36a06.zip
block: add disk/bio-based accounting helpers
Add two new helpers to simplify I/O accounting for bio based drivers. Currently these drivers use the generic_start_io_acct and generic_end_io_acct helpers which have very cumbersome calling conventions, don't actually return the time they started accounting, and try to deal with accounting for partitions, which can't happen for bio based drivers. The new helpers will be used to subsequently replace uses of the old helpers. The main API is the bio based wrappes in blkdev.h, but for zram which wants to account rw_page based I/O lower level routines are provided as well. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions