]> git.baikalelectronics.ru Git - kernel.git/commit
smb3: fix performance regression with setting mtime
authorSteve French <stfrench@microsoft.com>
Mon, 24 Feb 2020 23:37:39 +0000 (17:37 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 08:50:14 +0000 (10:50 +0200)
commitcc178185c36a8678067d997f53dea3901b3e590c
tree19645c4dd198a8fa6c298bf3f632b433c7457afb
parentb6dca7d873b75ca65033eb66c46c8547280c7f24
smb3: fix performance regression with setting mtime

commit f91063149b7a1d2c6f3bd6f143739677fe5dbdce upstream.

There are cases when we don't want to send the SMB2 flush operation
(e.g. when user specifies mount parm "nostrictsync") and it can be
a very expensive operation on the server.  In most cases in order
to set mtime, we simply need to flush (write) the dirtry pages from
the client and send the writes to the server not also send a flush
protocol operation to the server.

Fixes: a51397eb7cad ("cifs: flush before set-info if we have writeable handles")
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/inode.c