aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2ops.c
diff options
context:
space:
mode:
authorPavel Shilovsky <piastry@etersoft.ru>2012-12-21 15:07:52 +0400
committerSteve French <smfrench@gmail.com>2013-01-01 23:04:14 -0600
commit88cf75aaaf27a652b3e85960ac3060172dd3edac (patch)
tree4d9b9f8050a5dce17bcfd0726daec0edceca08b9 /fs/cifs/smb2ops.c
parentRevert "CIFS: Fix write after setting a read lock for read oplock files" (diff)
downloadlinux-dev-88cf75aaaf27a652b3e85960ac3060172dd3edac.tar.xz
linux-dev-88cf75aaaf27a652b3e85960ac3060172dd3edac.zip
CIFS: Fix write after setting a read lock for read oplock files
If we have a read oplock and set a read lock in it, we can't write to the locked area - so, filemap_fdatawrite may fail with a no information for a userspace application even if we request a write to non-locked area. Fix this by writing directly to the server and then breaking oplock level from level2 to None. Also remove CONFIG_CIFS_SMB2 ifdefs because it's suitable for both CIFS and SMB2 protocols. Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru> Reviewed-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2ops.c')
0 files changed, 0 insertions, 0 deletions