Merge tag 'dlm-4.4' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 5 Nov 2015 19:15:25 +0000 (11:15 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 5 Nov 2015 19:15:25 +0000 (11:15 -0800)
Pull dlm update from David Teigland:
 "This includes one simple fix to make posix locks interruptible by
  signals in cases where a signal handler is used"

* tag 'dlm-4.4' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm:
  dlm: make posix locks interruptible

1  2 
fs/dlm/plock.c

diff --combined fs/dlm/plock.c
@@@ -145,7 -145,7 +145,7 @@@ int dlm_posix_lock(dlm_lockspace_t *loc
        send_op(op);
  
        if (xop->callback == NULL) {
-               rv = wait_event_killable(recv_wq, (op->done != 0));
+               rv = wait_event_interruptible(recv_wq, (op->done != 0));
                if (rv == -ERESTARTSYS) {
                        log_debug(ls, "dlm_posix_lock: wait killed %llx",
                                  (unsigned long long)number);
        rv = op->info.rv;
  
        if (!rv) {
 -              if (posix_lock_file_wait(file, fl) < 0)
 +              if (locks_lock_file_wait(file, fl) < 0)
                        log_error(ls, "dlm_posix_lock: vfs lock error %llx",
                                  (unsigned long long)number);
        }
@@@ -262,7 -262,7 +262,7 @@@ int dlm_posix_unlock(dlm_lockspace_t *l
        /* cause the vfs unlock to return ENOENT if lock is not found */
        fl->fl_flags |= FL_EXISTS;
  
 -      rv = posix_lock_file_wait(file, fl);
 +      rv = locks_lock_file_wait(file, fl);
        if (rv == -ENOENT) {
                rv = 0;
                goto out_free;