Skip to content

Commit e7cbe11

Browse files
committed
Merge branch 'for-7.1/block' into for-next
* for-7.1/block: block: fix bio_alloc_bioset slowpath GFP handling
2 parents 4107f06 + 67807fb commit e7cbe11

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

block/bio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,11 +581,11 @@ struct bio *bio_alloc_bioset(struct block_device *bdev, unsigned short nr_vecs,
581581
*/
582582
opf &= ~REQ_ALLOC_CACHE;
583583

584-
p = mempool_alloc(&bs->bio_pool, gfp);
584+
p = mempool_alloc(&bs->bio_pool, saved_gfp);
585585
bio = p + bs->front_pad;
586586
if (nr_vecs > BIO_INLINE_VECS) {
587587
nr_vecs = BIO_MAX_VECS;
588-
bvecs = mempool_alloc(&bs->bvec_pool, gfp);
588+
bvecs = mempool_alloc(&bs->bvec_pool, saved_gfp);
589589
}
590590
}
591591

0 commit comments

Comments
 (0)