diff --git a/block/bio.c b/block/bio.c index 5f10900b3f42..9a94b45135b7 100644 --- a/block/bio.c +++ b/block/bio.c @@ -555,6 +555,8 @@ struct bio *bio_alloc_bioset(struct block_device *bdev, unsigned short nr_vecs, bio = bio_alloc_percpu_cache(bs); } else { opf &= ~REQ_ALLOC_CACHE; + } + if (!bio) { p = kmem_cache_alloc(bs->bio_slab, gfp); if (p) bio = p + bs->front_pad;