diff options
author | Pavel Shilovsky <piastryyy@gmail.com> | 2019-09-30 10:06:18 -0700 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2019-10-06 22:05:28 -0500 |
commit | 30573a82fb179420b8aac30a3a3595aa96a93156 (patch) | |
tree | 465cf0eacea3c63ad6d8ddb6485ecefef3825641 /crypto | |
parent | cb248819d209d113e45fed459773991518e8e80b (diff) | |
download | linux-30573a82fb179420b8aac30a3a3595aa96a93156.tar.bz2 |
CIFS: Gracefully handle QueryInfo errors during open
Currently if the client identifies problems when processing
metadata returned in CREATE response, the open handle is being
leaked. This causes multiple problems like a file missing a lease
break by that client which causes high latencies to other clients
accessing the file. Another side-effect of this is that the file
can't be deleted.
Fix this by closing the file after the client hits an error after
the file was opened and the open descriptor wasn't returned to
the user space. Also convert -ESTALE to -EOPENSTALE to allow
the VFS to revalidate a dentry and retry the open.
Cc: <stable@vger.kernel.org>
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions