From: Pavel Shilovsky Date: Tue, 27 Mar 2012 11:36:15 +0000 (+0400) Subject: CIFS: Fix VFS lock usage for oplocked files X-Git-Tag: v3.4-rc2~16^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5efb978469d152c2c7c0a09746fb0bfc6171868;p=pandora-kernel.git 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 Acked-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed