From: Pavel Shilovsky Date: Thu, 11 Jul 2013 07:17:45 +0000 (+0400) Subject: CIFS: Fix a deadlock when a file is reopened X-Git-Tag: v3.11-rc1~19^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=689c3db4d57a73bee6c5ad7797fce7b54d32a87c;p=pandora-kernel.git CIFS: Fix a deadlock when a file is reopened If we request reading or writing on a file that needs to be reopened, it causes the deadlock: we are already holding rw semaphore for reading and then we try to acquire it for writing in cifs_relock_file. Fix this by acquiring the semaphore for reading in cifs_relock_file due to we don't make any changes in locks and don't need a write access. CC: Signed-off-by: Pavel Shilovsky Acked-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed