summaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorPavel Shilovsky <piastryyy@gmail.com>2019-03-04 17:48:01 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-23 20:11:17 +0100
commit3eb2412dd9da1c459bcd45ad8f567e489c060ad2 (patch)
treee6d302fc3d16046b61363d75e71bdbfb7a08c38e /kernel/trace
parentc73a769b63fb86b38fda5a01765c9540b8c9c5a6 (diff)
downloadblackbird-obmc-linux-3eb2412dd9da1c459bcd45ad8f567e489c060ad2.tar.gz
blackbird-obmc-linux-3eb2412dd9da1c459bcd45ad8f567e489c060ad2.zip
CIFS: Fix read after write for files with read caching
commit 6dfbd84684700cb58b34e8602c01c12f3d2595c8 upstream. When we have a READ lease for a file and have just issued a write operation to the server we need to purge the cache and set oplock/lease level to NONE to avoid reading stale data. Currently we do that only if a write operation succedeed thus not covering cases when a request was sent to the server but a negative error code was returned later for some other reasons (e.g. -EIOCBQUEUED or -EINTR). Fix this by turning off caching regardless of the error code being returned. The patches fixes generic tests 075 and 112 from the xfs-tests. Cc: <stable@vger.kernel.org> Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/trace')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud