]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita74f294ff09c608fd6d2acfd1d73ce6c214fdc50
treec9759e70a15f502b69a046a7853a2264d6d5cfbb
parentbf8228bbfe989b4a7959e59a511cdf6ff25ff0f4
block: memory allocations in bounce_clone_bio must not fail

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>
block/bounce.c