tree b4a3fcd63090a3c5a5ba7e13c1c01897318eb948
parent 8d38eadb7a97f265f7b3a9e8a30df358c3a546c8
author Neil Brown <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:23:54 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:23:54 -0700
[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/md.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: drivers/md/md.c
===================================================================
--- 263e5b2c26f94d7583ae1f995bbe8a3b89ba2854/drivers/md/md.c (mode:100644
sha1:04562add1920ad08ad48608c8ba5fc4662ed6cfa)
+++ b4a3fcd63090a3c5a5ba7e13c1c01897318eb948/drivers/md/md.c (mode:100644
sha1:aa72c88a024f7ef06f4c32263497a379c0bd7094)
@@ -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