alistair23-linux/drivers/block/drbd
NeilBrown 8cb0defbaa drbd: use bio_clone_fast() instead of bio_clone()
drbd does not modify the bi_io_vec of the cloned bio,
so there is no need to clone that part.  So bio_clone_fast()
is the better choice.
For bio_clone_fast() we need to specify a bio_set.
We could use fs_bio_set, which bio_clone() uses, or
drbd_md_io_bio_set, which drbd uses for metadata, but it is
generally best to avoid sharing bio_sets unless you can
be certain that there are no interdependencies.

So create a new bio_set, drbd_io_bio_set, and use bio_clone_fast().

Also remove a "XXX cannot fail ???" comment because it definitely
cannot fail - bio_clone_fast() doesn't fail if the GFP flags allow for
sleeping.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2017-06-18 12:40:59 -06:00
..
drbd_actlog.c block: switch bios to blk_status_t 2017-06-09 09:27:32 -06:00
drbd_bitmap.c block: switch bios to blk_status_t 2017-06-09 09:27:32 -06:00
drbd_debugfs.c drbd: make intelligent use of blkdev_issue_zeroout 2017-04-08 11:25:38 -06:00
drbd_debugfs.h
drbd_int.h drbd: use bio_clone_fast() instead of bio_clone() 2017-06-18 12:40:59 -06:00
drbd_interval.c
drbd_interval.h drbd: code cleanups without semantic changes 2016-06-13 21:43:07 -06:00
drbd_main.c drbd: use bio_clone_fast() instead of bio_clone() 2017-06-18 12:40:59 -06:00
drbd_nl.c block: remove the discard_zeroes_data flag 2017-04-08 11:25:38 -06:00
drbd_nla.c netlink: pass extended ACK struct to parsing functions 2017-04-13 13:58:22 -04:00
drbd_nla.h
drbd_proc.c block: Use pointer to backing_dev_info from request_queue 2017-02-02 08:20:48 -07:00
drbd_protocol.h drbd: introduce WRITE_SAME support 2016-06-13 21:43:07 -06:00
drbd_receiver.c block: switch bios to blk_status_t 2017-06-09 09:27:32 -06:00
drbd_req.c blk: remove bio_set arg from blk_queue_split() 2017-06-18 12:40:59 -06:00
drbd_req.h drbd: use bio_clone_fast() instead of bio_clone() 2017-06-18 12:40:59 -06:00
drbd_state.c drbd: get rid of empty statement in is_valid_state 2016-06-13 21:43:07 -06:00
drbd_state.h drbd: code cleanups without semantic changes 2016-06-13 21:43:07 -06:00
drbd_state_change.h drbd: Backport the "events2" command 2015-11-25 09:22:00 -07:00
drbd_strings.c drbd: code cleanups without semantic changes 2016-06-13 21:43:07 -06:00
drbd_strings.h
drbd_vli.h
drbd_worker.c block: switch bios to blk_status_t 2017-06-09 09:27:32 -06:00
Kconfig
Makefile