CIFS: Do not permit write to a range mandatory locked with a read lock
authorPavel Shilovsky <piastry@etersoft.ru>
Tue, 27 Nov 2012 14:38:53 +0000 (18:38 +0400)
committerSteve French <smfrench@gmail.com>
Fri, 7 Dec 2012 18:40:50 +0000 (12:40 -0600)
commit081c0414dcdfd13c4276db30a775a5d0f72ad91a
tree159016804499d95239267b764a6b3f394eada4af
parenteb1b3fa5cdb9c27bdec8f262acf757a06588eb2d
CIFS: Do not permit write to a range mandatory locked with a read lock

We don't need to permit a write to the area locked with a read lock
by any process including the process that issues the write.

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsproto.h
fs/cifs/file.c