[GFS2] Fix race in logging code
authorRussell Cattelan <cattelan@redhat.com>
Thu, 9 Nov 2006 16:28:08 +0000 (11:28 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 30 Nov 2006 15:34:55 +0000 (10:34 -0500)
commit7020933156ac2a8a7386314933e49948bf0438f7
tree2833fb3993762143b32696919342ab7e86c7d471
parent9e2dbdac3df300516ffdd9a8631f23164d068a50
[GFS2] Fix race in logging code

The log lock is dropped prior to io submittion, but
this exposes a hole in which the log data structures
may be going away due to a truncate.
Store the buffer head in a local pointer prior to
dropping the lock and relay on the buffer_head lock
for consitency on the buffer head.

Signed-Off-By: Russell Cattelan <cattelan@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/lops.c