Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=e6c... Commit: e6ce10a475c1d9967a62e79546d23d5fedf936c1 Parent: 371a1a0eaff5c89cafe49f51d7494d4a10676a1a Author: Bob Peterson rpeterso@redhat.com AuthorDate: Tue Nov 16 09:10:06 2010 -0600 Committer: Bob Peterson rpeterso@redhat.com CommitterDate: Tue Nov 16 09:10:06 2010 -0600
GFS: Clean up posix locks after withdraw
This patch allows GFS to clean up its posix locks after a withdraw by calling posix_lock_file_wait rather than returning an error.
rhbz#642339 --- gfs-kernel/src/gfs/lm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gfs-kernel/src/gfs/lm.c b/gfs-kernel/src/gfs/lm.c index e1307ae..d1b3fb2 100644 --- a/gfs-kernel/src/gfs/lm.c +++ b/gfs-kernel/src/gfs/lm.c @@ -467,7 +467,7 @@ gfs_lm_punlock(struct gfs_sbd *sdp,
atomic_inc(&sdp->sd_lm_outstanding); if (unlikely(test_bit(SDF_SHUTDOWN, &sdp->sd_flags))) - error = -EIO; + error = posix_lock_file_wait(file, fl); else error = sdp->sd_lockstruct.ls_ops->lm_punlock( sdp->sd_lockstruct.ls_lockspace,
cluster-commits@lists.fedorahosted.org