diff options
Diffstat (limited to 'fs/gfs2/locking/dlm/lock.c')
-rw-r--r-- | fs/gfs2/locking/dlm/lock.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/gfs2/locking/dlm/lock.c b/fs/gfs2/locking/dlm/lock.c index cf7ea8abec87..fed9a67be0f1 100644 --- a/fs/gfs2/locking/dlm/lock.c +++ b/fs/gfs2/locking/dlm/lock.c | |||
@@ -308,6 +308,9 @@ unsigned int gdlm_lock(void *lock, unsigned int cur_state, | |||
308 | { | 308 | { |
309 | struct gdlm_lock *lp = lock; | 309 | struct gdlm_lock *lp = lock; |
310 | 310 | ||
311 | if (req_state == LM_ST_UNLOCKED) | ||
312 | return gdlm_unlock(lock, cur_state); | ||
313 | |||
311 | clear_bit(LFL_DLM_CANCEL, &lp->flags); | 314 | clear_bit(LFL_DLM_CANCEL, &lp->flags); |
312 | if (flags & LM_FLAG_NOEXP) | 315 | if (flags & LM_FLAG_NOEXP) |
313 | set_bit(LFL_NOBLOCK, &lp->flags); | 316 | set_bit(LFL_NOBLOCK, &lp->flags); |