diff options
author | 2017-06-18 14:38:58 +1000 | |
---|---|---|
committer | 2017-06-18 12:40:59 -0600 | |
commit | a1d91404cb69daee07282b331ce58c4ab2e7a620 (patch) | |
tree | 0ddb63d64918342bb6429b9041867c4aab549cb3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drbd: use bio_clone_fast() instead of bio_clone() (diff) | |
download | linux-dev-a1d91404cb69daee07282b331ce58c4ab2e7a620.tar.xz linux-dev-a1d91404cb69daee07282b331ce58c4ab2e7a620.zip |
pktcdvd: use bio_clone_fast() instead of bio_clone()
pktcdvd doesn't change the bi_io_vec of the clone bio,
so it is more efficient to use bio_clone_fast(), and not clone
the bi_io_vec.
This requires providing a bio_set, and it is safest to
provide a dedicated bio_set rather than sharing
fs_bio_set, which filesytems use.
This new bio_set, pkt_bio_set, can also be use for the bio_split()
call as the two allocations (bio_clone_fast, and bio_split) are
independent, neither can block a bio allocated by the other.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: NeilBrown <neilb@suse.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