aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <[email protected]>2020-02-18 20:01:03 +0000
committerSteve French <[email protected]>2020-02-24 20:20:38 +0000
commitfc513fac56e1b626ae48a74d7551d9c35c50129e (patch)
tree08355bc8cf0b36fd5b9d51165c525571e513b3f5 /fs/jbd2/commit.c
parentLinux 5.6-rc3 (diff)
downloadkernel-fc513fac56e1b626ae48a74d7551d9c35c50129e.tar.gz
kernel-fc513fac56e1b626ae48a74d7551d9c35c50129e.zip
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 <[email protected]> Signed-off-by: Steve French <[email protected]> Reviewed-by: Pavel Shilovsky <[email protected]> Reviewed-by: Aurelien Aptel <[email protected]> CC: Stable <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions