diff options
| author | Aurelien Aptel <[email protected]> | 2021-02-05 14:42:48 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2021-02-05 19:17:48 +0000 |
| commit | 21b200d091826a83aafc95d847139b2b0582f6d1 (patch) | |
| tree | 36b0c442d7275f0235e664bb92fe78be57d75478 /scripts/clang-tools/run-clang-tools.py | |
| parent | smb3: fix crediting for compounding when only one request in flight (diff) | |
| download | kernel-21b200d091826a83aafc95d847139b2b0582f6d1.tar.gz kernel-21b200d091826a83aafc95d847139b2b0582f6d1.zip | |
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 <[email protected]>
Suggested-by: Shyam Prasad N <[email protected]>
Reviewed-by: Shyam Prasad N <[email protected]>
CC: [email protected]
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'scripts/clang-tools/run-clang-tools.py')
0 files changed, 0 insertions, 0 deletions
