[GFS2] Fix deadlock in memory allocation
authorSteven Whitehouse <swhiteho@redhat.com>
Tue, 11 Jul 2006 13:50:54 +0000 (09:50 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Tue, 11 Jul 2006 13:50:54 +0000 (09:50 -0400)
commitf3bba03fd16e25a262323293e5a07dea173c89f7
tree1a31ba15db8a4134b1095bac438e02b2203f9cc6
parent4340fe62531f7d1dafb6f5359ffe0378bdb0db80
[GFS2] Fix deadlock in memory allocation

We must not call GFP_KERNEL memory allocations while we
are holding the log lock (read or write) since that may
trigger a log flush resulting in a deadlock.

Eventually we need to fix the locking in log.c, for now
this solves the problem at the expense of freeing up memory
as fast as we would like to. This needs to be revisited
later on.

Cc: Kevin Anderson <kanderso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/meta_io.c