aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-perl.c
diff options
context:
space:
mode:
authorKent Overstreet <[email protected]>2012-09-06 15:34:58 -0700
committerJens Axboe <[email protected]>2012-09-09 10:35:39 +0200
commitf44b48c7691be7643877d1f881b5eeace654d05d (patch)
treea862b4844b99abfa1bfb6fd437cf1ee4f055c438 /tools/perf/util/scripting-engines/trace-event-perl.c
parent94818742316e27d01506240cf8b07d69844d31af (diff)
block: Add bio_reset()
Reusing bios is something that's been highly frowned upon in the past, but driver code keeps doing it anyways. If it's going to happen anyways, we should provide a generic method. This'll help with getting rid of bi_destructor - drivers/block/pktcdvd.c was open coding it, by doing a bio_init() and resetting bi_destructor. This required reordering struct bio, but the block layer is not yet nearly fast enough for any cacheline effects to matter here. v5: Add a define BIO_RESET_BITS, to be very explicit about what parts of bio->bi_flags are saved. v6: Further commenting verbosity, per Tejun v9: Add a function comment Signed-off-by: Kent Overstreet <[email protected]> CC: Jens Axboe <[email protected]> Acked-by: Tejun Heo <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions