summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>2019-08-22 21:45:14 -0700
committerJens Axboe <axboe@kernel.dk>2019-08-23 06:58:04 -0600
commitd4b186ed227b80334abf1fe2c918c0ddc4374f38 (patch)
tree6d877f5efb7d24c3c4114713f60616c67384e9a8 /tools/perf/scripts/python/export-to-postgresql.py
parentd1916c86ccdcb67996278a850a22762102702d85 (diff)
null_blk: move duplicate code to callers
This is a preparation patch which moves the duplicate code for sectors and nr_sectors calculations for bio vs request mode into their respective callers (null_queue_bio(), null_qeueue_req()). Now the core function only deals with the respective actions and commands instead of having to calculte the bio vs req operations and different sector related variables. We also move the flush command handling at the top which significantly simplifies the rest of the code. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions