Re: xfsdump hangs - 2.6.6 && 2.6.7-rc1-bk3

From: Nathan Scott
Date: Thu May 27 2004 - 00:02:46 EST


On Wed, May 26, 2004 at 09:13:14AM -0700, dag@xxxxxxxxx wrote:
>
> I experience hangs with xfsdump, when dumping my rootfs to a USB 2.0
> ...
> http://thaifood.homeip.net/xfsdumphang/xfsdump.dmesg.txt
> ...

The xfsdump stack trace in there is the important one.
Can you try this patch and let me know how it goes?

thanks.

--
Nathan


--- fs/xfs/linux/xfs_buf.c.orig 2004-05-27 14:06:59.992936144 +1000
+++ fs/xfs/linux/xfs_buf.c 2004-05-27 14:08:21.548537808 +1000
@@ -370,8 +370,12 @@
retry:
page = find_or_create_page(mapping, first + i, gfp_mask);
if (unlikely(page == NULL)) {
- if (flags & PBF_READ_AHEAD)
+ if (flags & PBF_READ_AHEAD) {
+ for (--i; i >= 0; i--)
+ page_cache_release(bp->pb_pages[i]);
+ _pagebuf_free_pages(bp);
return -ENOMEM;
+ }

/*
* This could deadlock.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/