# Re: \[PATCH 04/17\] block: split bio\_kmalloc from bio\_alloc\_bioset

- From: Christoph Hellwig \<hch@lst.de\>
- Date: 2021-02-01 12:23:09 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2021/02/198971
- Thread: https://ratatoskr.run/linux-f2fs-devel/2021/01/198441/t.md

```text
On Sat, Jan 30, 2021 at 03:56:46AM +0000, Matthew Wilcox wrote:
> On Tue, Jan 26, 2021 at 03:52:34PM +0100, Christoph Hellwig wrote:
> > bio_kmalloc shares almost no logic with the bio_set based fast path
> > in bio_alloc_bioset.  Split it into an entirely separate implementation.
> > 
> > Signed-off-by: Christoph Hellwig <hch@lst.de>
> > ---
> >  block/bio.c         | 167 ++++++++++++++++++++++----------------------
> >  include/linux/bio.h |   6 +-
> >  2 files changed, 86 insertions(+), 87 deletions(-)
> 
> This patch causes current linux-next to OOM for me when running xfstests
> after about ten minutes.  Haven't looked into why yet, this is just the
> results of a git bisect.

I've run tests on linux-next all weekend and could not reproduce
the issue.  Can you share your .config?
```
