Skip to contentSkip to conversation

Avoid deadlock in sync_page_io by using GFP_NOIO

PATCH In review [email protected] 1 participant 1 message Apr 12, 2005 MD RAID

lore
Share & tools
lore
#0 lore raw

PATCH 2/198 Avoid deadlock in sync_page_io by using GFP_NOIO

From: Neil Brown <[email protected]>

..as sync_page_io can be called on the write-out path.

---

 25-akpm/drivers/md/md.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/md/md.c renamed from drivers/md/md.c~avoid-deadlock-in-sync_page_io-by-using-gfp_noio +1 -1
diff -puN drivers/md/md.c~avoid-deadlock-in-sync_page_io-by-using-gfp_noio drivers/md/md.c
@@ -332,7 +332,7 @@ static int bi_complete(struct bio *bio, 
 static int sync_page_io(struct block_device *bdev, sector_t sector, int size,
 		   struct page *page, int rw)
 {
-	struct bio *bio = bio_alloc(GFP_KERNEL, 1);
+	struct bio *bio = bio_alloc(GFP_NOIO, 1);
 	struct completion event;
 	int ret;
 

_