]> git.karo-electronics.de Git - karo-tx-linux.git/commit
CIFS: Check for mandatory brlocks on read/write
authorPavel Shilovsky <pshilovsky@etersoft.ru>
Wed, 19 Sep 2012 13:22:44 +0000 (06:22 -0700)
committerJeff Layton <jlayton@redhat.com>
Wed, 19 Sep 2012 13:22:44 +0000 (06:22 -0700)
commit220d7dab050ebd6d5e8007f1c963946a59a16ad6
tree1d2f27c55bc0fd6cd8b84900057595dab20c24f9
parentd5ad286a875ba3c8f75985197f5fe05c0d8d5309
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