* XFS deadlock fixed?
@ 2011-05-10 3:40 Felipe Wilhelms Damasio - Taghos
2011-05-11 15:35 ` Christoph Hellwig
0 siblings, 1 reply; 3+ messages in thread
From: Felipe Wilhelms Damasio - Taghos @ 2011-05-10 3:40 UTC (permalink / raw)
To: linux-kernel; +Cc: hch
Hi Mr. Hellwig,
I saw the XFS deadlock thread regarding 2.6.38:
http://www.linux.sgi.com/archives/xfs/2011-03/msg00185.html
I'm seeing too in 2.6.38.4. A lot of
XFS: possible memory allocation deadlock in kmem_alloc (mode:0x250)
I checked the changelog for 2.6.38.6 and can't be sure if the fix got
in...could you tell me if it did?
Thanks,
--
Felipe Wilhelms Damasio
TAGHOS - Tecnologia
Rua Prof. Alvaro Alvim, 211
Porto Alegre - RS - (51) 3239-3180
www.taghos.com.br <http://www.taghos.com.br/>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: XFS deadlock fixed?
2011-05-10 3:40 XFS deadlock fixed? Felipe Wilhelms Damasio - Taghos
@ 2011-05-11 15:35 ` Christoph Hellwig
2011-05-11 15:35 ` Christoph Hellwig
0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2011-05-11 15:35 UTC (permalink / raw)
To: Felipe Wilhelms Damasio - Taghos; +Cc: linux-kernel
On Tue, May 10, 2011 at 12:40:07AM -0300, Felipe Wilhelms Damasio - Taghos wrote:
> Hi Mr. Hellwig,
>
> I saw the XFS deadlock thread regarding 2.6.38:
>
> http://www.linux.sgi.com/archives/xfs/2011-03/msg00185.html
>
> I'm seeing too in 2.6.38.4. A lot of
>
> XFS: possible memory allocation deadlock in kmem_alloc (mode:0x250)
You're probably running into a different issue. Any chance you can try
the attached patch to see where you're stuck exactly?
Also in case you're using slub (CONFIG_SLUB) can you check if it still
happens when using slab (CONFIG_SLAB) instead?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: XFS deadlock fixed?
2011-05-11 15:35 ` Christoph Hellwig
@ 2011-05-11 15:35 ` Christoph Hellwig
0 siblings, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2011-05-11 15:35 UTC (permalink / raw)
To: Felipe Wilhelms Damasio - Taghos; +Cc: linux-kernel
And here's the actual patch, sorry:
Index: linux-2.6/fs/xfs/linux-2.6/kmem.c
===================================================================
--- linux-2.6.orig/fs/xfs/linux-2.6/kmem.c 2011-05-11 17:29:51.729191621 +0200
+++ linux-2.6/fs/xfs/linux-2.6/kmem.c 2011-05-11 17:30:22.915689382 +0200
@@ -56,10 +56,12 @@ kmem_alloc(size_t size, unsigned int __n
ptr = kmalloc(size, lflags);
if (ptr || (flags & (KM_MAYFAIL|KM_NOSLEEP)))
return ptr;
- if (!(++retries % 100))
+ if (!(++retries % 100)) {
xfs_err(NULL,
"possible memory allocation deadlock in %s (mode:0x%x)",
__func__, lflags);
+ dump_stack();
+ }
congestion_wait(BLK_RW_ASYNC, HZ/50);
} while (1);
}
@@ -112,10 +114,12 @@ kmem_zone_alloc(kmem_zone_t *zone, unsig
ptr = kmem_cache_alloc(zone, lflags);
if (ptr || (flags & (KM_MAYFAIL|KM_NOSLEEP)))
return ptr;
- if (!(++retries % 100))
+ if (!(++retries % 100)) {
xfs_err(NULL,
"possible memory allocation deadlock in %s (mode:0x%x)",
__func__, lflags);
+ dump_stack();
+ }
congestion_wait(BLK_RW_ASYNC, HZ/50);
} while (1);
}
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-05-11 16:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-10 3:40 XFS deadlock fixed? Felipe Wilhelms Damasio - Taghos
2011-05-11 15:35 ` Christoph Hellwig
2011-05-11 15:35 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox