diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2013-07-11 07:17:45 (GMT) |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2013-07-11 23:05:41 (GMT) |
commit | 689c3db4d57a73bee6c5ad7797fce7b54d32a87c (patch) | |
tree | c8a1f22b1fcdc1335d12a0b41889ec5098176d8b /fs/jffs2/build.c | |
parent | b33fcf1c9d359374ef6e8e7ec1e0b6f7a8717e16 (diff) | |
download | linux-fsl-qoriq-689c3db4d57a73bee6c5ad7797fce7b54d32a87c.tar.xz |
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: <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>
Diffstat (limited to 'fs/jffs2/build.c')
0 files changed, 0 insertions, 0 deletions