]> err.no Git - linux-2.6/commit
[GFS2] Fix list corruption in lops.c
authorSteven Whitehouse <swhiteho@redhat.com>
Thu, 25 Jan 2007 10:04:20 +0000 (10:04 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 5 Feb 2007 18:37:56 +0000 (13:37 -0500)
commit8bd9572769767c6fd164cff4e1202df12cb34b4a
treeaef67aaaaa443ae233630f3eb5cbbb02aba375cb
parentd7c103d0bd29c94f78155a4538faf314e49d9713
[GFS2] Fix list corruption in lops.c

The patch below appears to fix the list corruption that we are seeing on
occasion. Although the transaction structure is private to a single
thread, when the queued structures are dismantled during an in-core
commit, its possible for a different thread to be trying to add the same
structure to another, new, transaction at the same time.

To avoid this, this patch takes the log spinlock during this operation.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/lops.c