summaryrefslogtreecommitdiff
path: root/fs/sysfs
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilov@microsoft.com>2019-11-13 04:16:35 +0300
committerSteve French <stfrench@microsoft.com>2019-11-25 10:14:53 +0300
commit44805b0e62f15e90d233485420e1847133716bdc (patch)
tree0de17086e2c5ec81a80f0b9b0d92c460e8f89e86 /fs/sysfs
parent037d050724ed30a5ef02e6e886884a48e7654e47 (diff)
downloadlinux-44805b0e62f15e90d233485420e1847133716bdc.tar.xz
CIFS: Respect O_SYNC and O_DIRECT flags during reconnect
Currently the client translates O_SYNC and O_DIRECT flags into corresponding SMB create options when openning a file. The problem is that on reconnect when the file is being re-opened the client doesn't set those flags and it causes a server to reject re-open requests because create options don't match. The latter means that any subsequent system call against that open file fail until a share is re-mounted. Fix this by properly setting SMB create options when re-openning files after reconnects. Fixes: 1013e760d10e6: ("SMB3: Don't ignore O_SYNC/O_DSYNC and O_DIRECT flags") Cc: Stable <stable@vger.kernel.org> Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/sysfs')
0 files changed, 0 insertions, 0 deletions