diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2020-02-19 06:01:03 +1000 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2020-02-24 14:20:38 -0600 |
commit | fc513fac56e1b626ae48a74d7551d9c35c50129e (patch) | |
tree | 08355bc8cf0b36fd5b9d51165c525571e513b3f5 /drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | |
parent | f8788d86ab28f61f7b46eb6be375f8a726783636 (diff) |
cifs: don't leak -EAGAIN for stat() during reconnect
If from cifs_revalidate_dentry_attr() the SMB2/QUERY_INFO call fails with an
error, such as STATUS_SESSION_EXPIRED, causing the session to be reconnected
it is possible we will leak -EAGAIN back to the application even for
system calls such as stat() where this is not a valid error.
Fix this by re-trying the operation from within cifs_revalidate_dentry_attr()
if cifs_get_inode_info*() returns -EAGAIN.
This fixes stat() and possibly also other system calls that uses
cifs_revalidate_dentry*().
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
CC: Stable <stable@vger.kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c')
0 files changed, 0 insertions, 0 deletions