Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions block/bio.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,13 +576,6 @@ struct bio *bio_alloc_bioset(struct block_device *bdev, unsigned short nr_vecs,
}

if (unlikely(!bio)) {
/*
* Give up if we are not allow to sleep as non-blocking mempool
* allocations just go back to the slab allocation.
*/
if (!(saved_gfp & __GFP_DIRECT_RECLAIM))
return NULL;

punt_bios_to_rescuer(bs);

/*
Expand Down