summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fccf4d0)
raw | patch | inline | side by side (parent: fccf4d0)
author | Steven Whitehouse <swhiteho@redhat.com> | |
Thu, 14 Mar 2013 15:49:59 +0000 (15:49 +0000) | ||
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
Wed, 17 Apr 2013 04:48:28 +0000 (21:48 -0700) |
commit c2952d202f710d326ac36a8ea6bd216b20615ec8 upstream.
When withdraw occurs, we need to continue to allow unlocks of fcntl
locks to occur, however these will only be local, since the node has
withdrawn from the cluster. This prevents triggering a VFS level
bug trap due to locks remaining when a file is closed.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
When withdraw occurs, we need to continue to allow unlocks of fcntl
locks to occur, however these will only be local, since the node has
withdrawn from the cluster. This prevents triggering a VFS level
bug trap due to locks remaining when a file is closed.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/gfs2/file.c | patch | blob | history |
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c
index 991ab2d484dd888e9432dd66ecee92247e16fac9..7af426bbf601e5e5e61f98e63d4dc55ed4f26ca4 100644 (file)
--- a/fs/gfs2/file.c
+++ b/fs/gfs2/file.c
cmd = F_SETLK;
fl->fl_type = F_UNLCK;
}
- if (unlikely(test_bit(SDF_SHUTDOWN, &sdp->sd_flags)))
+ if (unlikely(test_bit(SDF_SHUTDOWN, &sdp->sd_flags))) {
+ if (fl->fl_type == F_UNLCK)
+ posix_lock_file_wait(file, fl);
return -EIO;
+ }
if (IS_GETLK(cmd))
return dlm_posix_get(ls->ls_dlm, ip->i_no_addr, file, fl);
else if (fl->fl_type == F_UNLCK)