On Tue, Mar 31, 2020 at 08:04:21PM -0700, Matthew Wilcox wrote: > From: "Matthew Wilcox (Oracle)" <willy@xxxxxxxxxxxxx> > > bio_alloc() can fail when we use GFP_NORETRY. If it does, allocate > a bio large enough for a single page like mpage_readpages() does. > > Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> Looks ok - not because I'm a fan of the pattern, but because we have a real bug and this seems to be the quickest fix and similar to the mpage codebase.. Reviewed-by: Christoph Hellwig <hch@xxxxxx>