* [PATCH 1/7] Document that bio_alloc with __GFP_WAIT cannot fail
@ 2009-04-15 5:05 Nikanth Karthikesan
0 siblings, 0 replies; only message in thread
From: Nikanth Karthikesan @ 2009-04-15 5:05 UTC (permalink / raw)
To: Jens Axboe; +Cc: linux-kernel
Document that bio_alloc with __GFP_WAIT cannot fail.
Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>
---
diff --git a/fs/bio.c b/fs/bio.c
index e0c9e54..5b5dfdd 100644
--- a/fs/bio.c
+++ b/fs/bio.c
@@ -348,6 +348,10 @@ err:
return NULL;
}
+/*
+ * This will not fail as long as __GFP_WAIT is specified
+ * in the gfp_mask, as mempool backing is used.
+ */
struct bio *bio_alloc(gfp_t gfp_mask, int nr_iovecs)
{
struct bio *bio = bio_alloc_bioset(gfp_mask, nr_iovecs, fs_bio_set);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-15 5:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-15 5:05 [PATCH 1/7] Document that bio_alloc with __GFP_WAIT cannot fail Nikanth Karthikesan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox