https://github.com/torvalds/linux
Revision 689c3db4d57a73bee6c5ad7797fce7b54d32a87c authored by Pavel Shilovsky on 11 July 2013, 07:17:45 UTC, committed by Steve French on 11 July 2013, 23:05:41 UTC
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: <stable@vger.kernel.org>
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
1 parent b33fcf1
History
Tip revision: 689c3db4d57a73bee6c5ad7797fce7b54d32a87c authored by Pavel Shilovsky on 11 July 2013, 07:17:45 UTC
CIFS: Fix a deadlock when a file is reopened
Tip revision: 689c3db
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.1 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 251.2 KB
Makefile -rw-r--r-- 47.3 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top