commit | b90994c6ab623baf9268df9710692f14920ce9d2 | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Wed Feb 24 08:24:05 2021 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Wed Feb 24 08:55:00 2021 -0700 |
tree | 0b660d261f3f35cefad27fa700025fb4ba770a18 | |
parent | 5407334c53e9922c1c3fb28801e489d0b74f2c8d [diff] |
block: fix bounce_clone_bio for passthrough bios Now that bio_alloc_bioset does not fall back to kmalloc for a NULL bio_set, handle that case explicitly and simplify the calling conventions. Based on an earlier patch from Chaitanya Kulkarni. Fixes: 3175199ab0ac ("block: split bio_kmalloc from bio_alloc_bioset") Reported-by: Chaitanya Kulkarni <Chaitanya.Kulkarni@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>