From: Neil Brown <[EMAIL PROTECTED]>
..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]>
---
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;
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/