Aurelien Aptel 21b200d091 cifs: report error instead of invalid when revalidating a dentry fails
Assuming
- //HOST/a is mounted on /mnt
- //HOST/b is mounted on /mnt/b

On a slow connection, running 'df' and killing it while it's
processing /mnt/b can make cifs_get_inode_info() returns -ERESTARTSYS.

This triggers the following chain of events:
=> the dentry revalidation fail
=> dentry is put and released
=> superblock associated with the dentry is put
=> /mnt/b is unmounted

This patch makes cifs_d_revalidate() return the error instead of 0
(invalid) when cifs_revalidate_dentry() fails, except for ENOENT (file
deleted) and ESTALE (file recreated).

Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Suggested-by: Shyam Prasad N <nspmangalore@gmail.com>
Reviewed-by: Shyam Prasad N <nspmangalore@gmail.com>
CC: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
2021-02-05 13:17:48 -06:00
..
2020-10-22 12:17:52 -05:00
2020-06-01 00:10:18 -05:00
2021-01-28 21:40:43 -06:00
2020-12-13 19:12:07 -06:00
2021-01-28 21:40:43 -06:00
2021-01-28 21:40:43 -06:00
2020-06-01 00:10:18 -05:00
2021-01-28 21:40:43 -06:00
2021-01-28 21:40:43 -06:00
2021-01-28 21:40:43 -06:00
2020-07-09 10:06:52 -05:00
2020-12-14 09:16:22 -06:00
2020-08-02 18:00:25 -05:00
2020-10-19 15:11:11 -05:00
2021-01-13 12:55:33 -06:00
2019-01-24 09:37:33 -06:00