tree ccd571541c2aa723474cb8ad6f1d8c34a817ff57
parent 50ae21d7a493cd55efb3ef92f0d7b8aeee3b42f7
author Neil Brown <[EMAIL PROTECTED]> Tue Apr 12 08:24:30 2005
committer Linus Torvalds <[EMAIL PROTECTED]> Tue Apr 12 08:24:30 2005

[PATCH] Avoid deadlock in sync_page_io by using GFP_NOIO

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

Signed-off-by: Neil Brown <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>

 md.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: drivers/md/md.c
===================================================================
--- 2d7ad81eafccfdee29c1d954e7dc72a134981e9d/drivers/md/md.c  (mode:100644 
sha1:8c903d863c304557080d48feeb9b30cc53455278)
+++ ccd571541c2aa723474cb8ad6f1d8c34a817ff57/drivers/md/md.c  (mode:100644 
sha1:e8f1473c7640577a36220048d10921d88bb23023)
@@ -332,7 +332,7 @@
 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;
 
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to