linux/drivers/block
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
..
aoe block: switch bios to blk_status_t 2017-06-09 09:27:32 -06:00
drbd drbd: use bio_clone_fast() instead of bio_clone() 2017-06-18 12:40:59 -06:00
mtip32xx blk-mq: switch ->queue_rq return value to blk_status_t 2017-06-09 09:27:32 -06:00
paride block: introduce new block status code type 2017-06-09 09:27:32 -06:00
rsxx blk: remove bio_set arg from blk_queue_split() 2017-06-18 12:40:59 -06:00
xen-blkback block: switch bios to blk_status_t 2017-06-09 09:27:32 -06:00
zram zram: reduce load operation in page_same_filled 2017-05-03 15:52:11 -07:00
amiflop.c block: introduce new block status code type 2017-06-09 09:27:32 -06:00
ataflop.c block: introduce new block status code type 2017-06-09 09:27:32 -06:00
brd.c libnvdimm for 4.12 2017-05-05 18:49:20 -07:00
cciss_cmd.h
cciss_scsi.c cciss: Remove kmalloc cast 2017-02-22 11:54:49 -07:00
cciss_scsi.h
cciss.c block: introduce new block status code type 2017-06-09 09:27:32 -06:00
cciss.h SCSI misc on 20170220 2017-02-21 11:51:42 -08:00
cryptoloop.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
DAC960.c block: introduce new block status code type 2017-06-09 09:27:32 -06:00
DAC960.h
floppy.c block: switch bios to blk_status_t 2017-06-09 09:27:32 -06:00
Kconfig libnvdimm for 4.12 2017-05-05 18:49:20 -07:00
loop.c loop: Add PF_LESS_THROTTLE to block/loop device thread. 2017-06-18 09:07:42 -06:00
loop.h loop: support 4k physical blocksize 2017-06-08 08:40:00 -06:00
Makefile block: remove the osdblk driver 2017-04-19 09:10:51 -06:00
nbd.c Linux 4.12-rc5 2017-06-12 08:30:13 -06:00
null_blk.c blk-mq: switch ->queue_rq return value to blk_status_t 2017-06-09 09:27:32 -06:00
pktcdvd.c blk: remove bio_set arg from blk_queue_split() 2017-06-18 12:40:59 -06:00
ps3disk.c block: introduce new block status code type 2017-06-09 09:27:32 -06:00
ps3vram.c blk: remove bio_set arg from blk_queue_split() 2017-06-18 12:40:59 -06:00
rbd_types.h rbd: RBD_V{1,2}_DATA_FORMAT macros 2017-02-20 12:16:15 +01:00
rbd.c rbd: use bio_clone_fast() instead of bio_clone() 2017-06-18 12:40:59 -06:00
skd_main.c block: introduce new block status code type 2017-06-09 09:27:32 -06:00
skd_s1120.h
smart1,2.h
sunvdc.c block: introduce new block status code type 2017-06-09 09:27:32 -06:00
swim3.c block: swim3: make of_device_ids const. 2017-06-16 09:49:13 -06:00
swim_asm.S
swim.c block: introduce new block status code type 2017-06-09 09:27:32 -06:00
sx8.c block: introduce new block status code type 2017-06-09 09:27:32 -06:00
umem.c blk: remove bio_set arg from blk_queue_split() 2017-06-18 12:40:59 -06:00
umem.h
virtio_blk.c blk-mq: switch ->queue_rq return value to blk_status_t 2017-06-09 09:27:32 -06:00
xen-blkfront.c block: switch bios to blk_status_t 2017-06-09 09:27:32 -06:00
xsysace.c block: introduce new block status code type 2017-06-09 09:27:32 -06:00
z2ram.c block: introduce new block status code type 2017-06-09 09:27:32 -06:00