commit | 7020933156ac2a8a7386314933e49948bf0438f7 | [log] [tgz] |
---|---|---|
author | Russell Cattelan <cattelan@redhat.com> | Thu Nov 09 11:28:08 2006 -0500 |
committer | Steven Whitehouse <swhiteho@redhat.com> | Thu Nov 30 10:34:55 2006 -0500 |
tree | 2833fb3993762143b32696919342ab7e86c7d471 | |
parent | 9e2dbdac3df300516ffdd9a8631f23164d068a50 [diff] |
[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>