mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch 002/198] Avoid deadlock in sync_page_io by using GFP_NOIO
@ 2005-04-12 10:30 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2005-04-12 10:30 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel, akpm, neilb


From: Neil Brown <neilb@cse.unsw.edu.au>

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

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 25-akpm/drivers/md/md.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/md/md.c~avoid-deadlock-in-sync_page_io-by-using-gfp_noio drivers/md/md.c
--- 25/drivers/md/md.c~avoid-deadlock-in-sync_page_io-by-using-gfp_noio	2005-04-12 03:21:04.115511248 -0700
+++ 25-akpm/drivers/md/md.c	2005-04-12 03:21:04.121510336 -0700
@@ -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;
 
_

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-12 18:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-12 10:30 [patch 002/198] Avoid deadlock in sync_page_io by using GFP_NOIO akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®