]> git.karo-electronics.de Git - karo-tx-linux.git/commit
CIFS: Check for mandatory brlocks on read/write
authorPavel Shilovsky <pshilovsky@etersoft.ru>
Wed, 29 Aug 2012 15:26:10 +0000 (19:26 +0400)
committerSteve French <sfrench@us.ibm.com>
Sat, 15 Sep 2012 18:05:02 +0000 (13:05 -0500)
commit1444fa45c39500bf97cd8a921bd7bd56ceed9f5a
tree9c1dbe026b5fa785f738493a3c17fb68e4f4908a
parent88aaa3582a5d607a1c73e0acc9874912c6a18106
CIFS: Check for mandatory brlocks on read/write

Currently CIFS code accept read/write ops on mandatory locked area
when two processes use the same file descriptor - it's wrong.
Fix this by serializing io and brlock operations on the inode.

Signed-off-by: Pavel Shilovsky <pshilovsky@etersoft.ru>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsproto.h
fs/cifs/file.c