diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-09-05 12:27:44 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-09-22 23:25:01 -0400 |
commit | fd6840714d9cf6e93f1d42b904860a94df316b85 (patch) | |
tree | e72a0ef8bff8f1b6183596dbce3de34570ee6180 /net/dccp/ccids/ccid2.h | |
parent | 762d4527c2fc19d821a13d9a3455ccc2d4073731 (diff) |
NFS: nfs_lookup - don't hash dentry when optimising away the lookup
If the open intents tell us that a given lookup is going to result in a,
exclusive create, we currently optimize away the lookup call itself. The
reason is that the lookup would not be atomic with the create RPC call, so
why do it in the first place?
A problem occurs, however, if the VFS aborts the exclusive create operation
after the lookup, but before the call to create the file/directory: in this
case we will end up with a hashed negative dentry in the dcache that has
never been looked up.
Fix this by only actually hashing the dentry once the create operation has
been successfully completed.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/dccp/ccids/ccid2.h')
0 files changed, 0 insertions, 0 deletions