diff options
author | Josef Bacik <[email protected]> | 2011-09-18 10:34:03 -0400 |
---|---|---|
committer | Chris Mason <[email protected]> | 2011-09-18 10:34:03 -0400 |
commit | a66e7cc626f42de6c745963fe0d807518fa49d39 (patch) | |
tree | 22a508ec3e8735c2e42cbde62f62967d5c25e3e9 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 48802c8ae2a9d618ec734a61283d645ad527e06c (diff) |
Btrfs: only clear the need lookup flag after the dentry is setup
We can race with readdir and the RCU path walking stuff. This is because we
clear the need lookup flag before actually instantiating the inode. This will
lead the RCU path walk stuff to find a dentry it thinks is valid without a
d_inode attached. So instead unhash the dentry when we first start the lookup,
and then clear the flag after we've instantiated the dentry so we're garunteed
to either try the slow lookup, or have the d_inode set properly.
Signed-off-by: Josef Bacik <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions