diff options
author | Russell Cattelan <cattelan@redhat.com> | 2007-01-29 17:13:44 -0600 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2007-02-05 13:38:17 -0500 |
commit | ddee76089cc9bcbd8ae9ec6c26e726a8ab2fe675 (patch) | |
tree | cf08d003789a2be0f109d3d5f255137fd36360f5 /fs/gfs2/util.h | |
parent | 61be084efcc4451934257350281962595418a33c (diff) |
[GFS2] Fix unlink deadlocks
Move the glock acquisition to outside of the transactions.
Lock odering must be preserved in order to prevent ABBA
deadlocks. The current gfs2_change_nlink code would tries
to grab the glock after having started a transaction and thus is holding
the log lock. This is inconsistent with other code paths in
gfs that grab the resource group glock prior to staring
a tranactions.
One problem with this fix is that the resource group
lock is always grabbed now even if the inode still has
ref count and can not be marked for unlink.
Signed-off-by: Russell Cattelan <cattelan@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/util.h')
0 files changed, 0 insertions, 0 deletions