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
..
2017-06-09 09:27:32 -06:00
2017-06-09 09:27:32 -06:00
2016-07-05 11:34:49 -06:00
2014-08-04 15:23:02 -07:00
2014-08-04 15:23:02 -07:00
2017-06-09 09:27:32 -06:00
2017-06-09 09:27:32 -06:00
2014-02-25 18:42:49 -08:00
2014-03-18 12:22:35 -07:00
2017-06-09 09:27:32 -06:00
2017-06-09 09:27:32 -06:00
2017-06-09 09:27:32 -06:00
2014-03-18 12:22:35 -07:00
2013-11-10 21:56:32 -08:00
2014-03-18 12:22:35 -07:00
2017-06-09 09:27:32 -06:00