linux/drivers/lightnvm
NeilBrown b25d52379a lightnvm/pblk-read: use bio_clone_fast()
pblk_submit_read() uses bio_clone_bioset() but doesn't change the
io_vec, so bio_clone_fast() is a better choice.

It also uses fs_bio_set which is intended for filesystems.  Using it
in a device driver can deadlock.
So allocate a new bioset, and and use bio_clone_fast().

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Javier González <javier@cnexlabs.com>
Tested-by: Javier González <javier@cnexlabs.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2017-06-18 12:40:59 -06:00
..
core.c lightnvm: fix bad back free on error path 2017-05-04 07:53:04 -06:00
Kconfig lightnvm: physical block device (pblk) target 2017-04-16 10:06:33 -06:00
Makefile lightnvm: physical block device (pblk) target 2017-04-16 10:06:33 -06:00
pblk-cache.c lightnvm: physical block device (pblk) target 2017-04-16 10:06:33 -06:00
pblk-core.c block: switch bios to blk_status_t 2017-06-09 09:27:32 -06:00
pblk-gc.c lightnvm: pblk: fix erase counters on error fail 2017-04-23 16:57:52 -06:00
pblk-init.c lightnvm/pblk-read: use bio_clone_fast() 2017-06-18 12:40:59 -06:00
pblk-map.c lightnvm: pblk: fix erase counters on error fail 2017-04-23 16:57:52 -06:00
pblk-rb.c lightnvm: physical block device (pblk) target 2017-04-16 10:06:33 -06:00
pblk-read.c lightnvm/pblk-read: use bio_clone_fast() 2017-06-18 12:40:59 -06:00
pblk-recovery.c lightnvm: fix some WARN() messages 2017-04-16 10:06:34 -06:00
pblk-rl.c lightnvm: pblk: fix erase counters on error fail 2017-04-23 16:57:52 -06:00
pblk-sysfs.c lightnvm: physical block device (pblk) target 2017-04-16 10:06:33 -06:00
pblk-write.c block: switch bios to blk_status_t 2017-06-09 09:27:32 -06:00
pblk.h lightnvm/pblk-read: use bio_clone_fast() 2017-06-18 12:40:59 -06:00
rrpc.c blk: remove bio_set arg from blk_queue_split() 2017-06-18 12:40:59 -06:00
rrpc.h lightnvm: use end_io callback instead of instance 2017-01-31 08:32:13 -07:00