WSL2-Linux-Kernel/drivers/md/bcache
NeilBrown 5a136fdf5a bcache: use kmalloc to allocate bio in bch_data_verify()
This function allocates a bio, then a collection
of pages.  It copes with failure.

It currently uses a mempool() to allocate the bio,
but alloc_page() to allocate the pages.  These fail
in different ways, so the usage is inconsistent.

Change the bio_clone() to bio_clone_kmalloc()
so that no pool is used either for the bio or the pages.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Kent Overstreet <kent.overstreet@gmail.com>
Reviewed-by : Ming Lei <ming.lei@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2017-06-18 12:40:59 -06:00
..
Kconfig
Makefile
alloc.c
bcache.h block: switch bios to blk_status_t 2017-06-09 09:27:32 -06:00
bset.c
bset.h
btree.c block: switch bios to blk_status_t 2017-06-09 09:27:32 -06:00
btree.h
closure.c
closure.h
debug.c bcache: use kmalloc to allocate bio in bch_data_verify() 2017-06-18 12:40:59 -06:00
debug.h
extents.c
extents.h
io.c block: switch bios to blk_status_t 2017-06-09 09:27:32 -06:00
journal.c block: switch bios to blk_status_t 2017-06-09 09:27:32 -06:00
journal.h
movinggc.c block: switch bios to blk_status_t 2017-06-09 09:27:32 -06:00
request.c block: switch bios to blk_status_t 2017-06-09 09:27:32 -06:00
request.h block: switch bios to blk_status_t 2017-06-09 09:27:32 -06:00
stats.c
stats.h
super.c blk: make the bioset rescue_workqueue optional. 2017-06-18 12:40:59 -06:00
sysfs.c
sysfs.h
trace.c
util.c
util.h
writeback.c block: switch bios to blk_status_t 2017-06-09 09:27:32 -06:00
writeback.h