block: memory allocations in bounce_clone_bio must not fail
authorChristoph Hellwig <hch@lst.de>
Wed, 24 Feb 2021 07:24:07 +0000 (08:24 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 24 Feb 2021 15:55:00 +0000 (08:55 -0700)
The caller can't cope with a failure from bounce_clone_bio, so
use __GFP_NOFAIL for the passthrough case.  bio_alloc_bioset already
won't fail due to the use of mempools.

And yes, we need to get rid of this bock layer bouncing code entirely
sooner or later..

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

No differences found