diff options
author | Pavel Shilovsky <[email protected]> | 2019-03-04 17:48:01 -0800 |
---|---|---|
committer | Steve French <[email protected]> | 2019-03-05 18:10:51 -0600 |
commit | 6dfbd84684700cb58b34e8602c01c12f3d2595c8 (patch) | |
tree | d543bce68a9221a4f9dcfce5953973320b118777 /lib/test_overflow.c | |
parent | 96281b9e46ebb90cefa8b57b11ca40e5ac05f649 (diff) |
CIFS: Fix read after write for files with read caching
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: <[email protected]>
Signed-off-by: Pavel Shilovsky <[email protected]>
Signed-off-by: Steve French <[email protected]>
Reviewed-by: Ronnie Sahlberg <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions