diff options
author | NeilBrown <[email protected]> | 2017-06-18 14:38:58 +1000 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2017-06-18 12:40:59 -0600 |
commit | a1d91404cb69daee07282b331ce58c4ab2e7a620 (patch) | |
tree | 0ddb63d64918342bb6429b9041867c4aab549cb3 /tools/perf/scripts/python/syscall-counts.py | |
parent | 8cb0defbaa8d4778c7474677cbb93d8cd602a2a6 (diff) |
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 <[email protected]>
Signed-off-by: NeilBrown <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions