]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/cifs/file.c
Merge tag 'drm-fixes-2020-03-20' of git://anongit.freedesktop.org/drm/drm
[linux.git] / fs / cifs / file.c
index 3b942ecdd4be76c3c1bb5e0c996bf34a41357f60..8f9d849a00125c5a21dcbe6fa904b3d5df133f7c 100644 (file)
@@ -1169,7 +1169,8 @@ cifs_posix_lock_set(struct file *file, struct file_lock *flock)
        rc = posix_lock_file(file, flock, NULL);
        up_write(&cinode->lock_sem);
        if (rc == FILE_LOCK_DEFERRED) {
-               rc = wait_event_interruptible(flock->fl_wait, !flock->fl_blocker);
+               rc = wait_event_interruptible(flock->fl_wait,
+                                       list_empty(&flock->fl_blocked_member));
                if (!rc)
                        goto try_again;
                locks_delete_block(flock);