aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2018-10-12 19:08:47 +0900
committerJens Axboe <[email protected]>2018-10-25 11:17:40 -0600
commita2d6b3a2d39005ab4d4a83481a7db092ebf0e9d6 (patch)
treed099578f43e9d1136c792485f4231a7fe1dc71b3 /tools/perf/scripts/python/export-to-postgresql.py
parent65e4e3eee83d7a4ad7e8c5175b2a0ddfd3b5685f (diff)
block: Improve zone reset execution
There is no need to synchronously execute all REQ_OP_ZONE_RESET BIOs necessary to reset a range of zones. Similarly to what is done for discard BIOs in blk-lib.c, all zone reset BIOs can be chained and executed asynchronously and a synchronous call done only for the last BIO of the chain. Modify blkdev_reset_zones() to operate similarly to blkdev_issue_discard() using the next_bio() helper for chaining BIOs. To avoid code duplication of that function in blk_zoned.c, rename next_bio() into blk_next_bio() and declare it as a block internal function in blk.h. Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: Damien Le Moal <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions