summaryrefslogtreecommitdiff
path: root/fs/cifs/cifssmb.c
diff options
context:
space:
mode:
authorPavel Shilovsky <piastry@etersoft.ru>2012-03-27 15:36:15 +0400
committerSteve French <sfrench@us.ibm.com>2012-03-31 17:30:48 -0500
commitb5efb978469d152c2c7c0a09746fb0bfc6171868 (patch)
tree18d46e1ef3bdf9bbb2df7f8e72b0c1e2ac2919fd /fs/cifs/cifssmb.c
parentfa2a4519cb6ad94224eb56a1341fff570fd44ea1 (diff)
CIFS: Fix VFS lock usage for oplocked files
We can deadlock if we have a write oplock and two processes use the same file handle. In this case the first process can't unlock its lock if another process blocked on the lock in the same time. Fix this by removing lock_mutex protection from waiting on a blocked lock and protect only posix_lock_file call. Cc: stable@kernel.org Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru> Acked-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
0 files changed, 0 insertions, 0 deletions