summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-dw-mmio.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2019-07-19 00:12:11 +0200
committerSteve French <stfrench@microsoft.com>2019-07-19 00:46:23 +0200
commitaa081859b10c5d8b19f5c525c78883a59d73c2b8 (patch)
treef4cf08099df1b5d188d012dad9c9f61f590e8fcb /drivers/spi/spi-dw-mmio.c
parentsmb3: optimize open to not send query file internal info (diff)
downloadlinux-aa081859b10c5d8b19f5c525c78883a59d73c2b8.tar.xz
linux-aa081859b10c5d8b19f5c525c78883a59d73c2b8.zip
cifs: flush before set-info if we have writeable handles
Servers can defer destaging any data and updating the mtime until close(). This means that if we do a setinfo to modify the mtime while other handles are open for write the server may overwrite our setinfo timestamps when if flushes the file on close() of the writeable handle. To solve this we add an explicit flush when the mtime is about to be updated. This fixes "cp -p" to preserve mtime when copying a file onto an SMB2 share. CC: Stable <stable@vger.kernel.org> Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'drivers/spi/spi-dw-mmio.c')
0 files changed, 0 insertions, 0 deletions