diff options
author | Ian Kent <[email protected]> | 2012-05-02 07:19:09 -0400 |
---|---|---|
committer | Steve French <[email protected]> | 2012-05-03 13:49:47 -0500 |
commit | 936ad9094462578953042d3395b973f1c9e6fa95 (patch) | |
tree | 22d52c9a2489768a9d70d95ef1a99c78185698c3 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 58fa015f611b51e1f501b048bc5ac263c78852f0 (diff) |
cifs - check S_AUTOMOUNT in revalidate
When revalidating a dentry, if the inode wasn't known to be a dfs
entry when the dentry was instantiated, such as when created via
->readdir(), the DCACHE_NEED_AUTOMOUNT flag needs to be set on the
dentry in ->d_revalidate().
The false return from cifs_d_revalidate(), due to the inode now
being marked with the S_AUTOMOUNT flag, might not invalidate the
dentry if there is a concurrent unlazy path walk. This is because
the dentry reference count will be at least 2 in this case causing
d_invalidate() to return EBUSY. So the asumption that the dentry
will be discarded then correctly instantiated via ->lookup() might
not hold.
Signed-off-by: Ian Kent <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Cc: Steve French <[email protected]>
Cc: [email protected]
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions