mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 08:50:17 +00:00
revert-linux-use-d-prune-aliases-instead-of-try-dcache-children-20020725
not currently safe on smp kernel uniprocessor systems for some reason. revert. also fix unlock/dget ordering to be consistent
This commit is contained in:
parent
77b1a76e47
commit
0e53c862c3
@ -481,10 +481,9 @@ static void afs_TryFlushDcacheChildren(struct vcache *tvc)
|
||||
struct list_head *head = &ip->i_dentry;
|
||||
struct dentry *dentry;
|
||||
|
||||
#if 1
|
||||
afs_Trace1(afs_iclSetp, CM_TRACE_TRYFLUSHDCACHECHILDREN,
|
||||
ICL_TYPE_POINTER, ip);
|
||||
|
||||
#if 0
|
||||
VN_HOLD(tvc);
|
||||
AFS_GUNLOCK();
|
||||
d_prune_aliases(ip);
|
||||
@ -507,8 +506,8 @@ restart:
|
||||
|
||||
next = tmp->next;
|
||||
if (!DCOUNT(dchld) && !dchld->d_inode) {
|
||||
DGET(dchld);
|
||||
AFS_GUNLOCK();
|
||||
DGET(dchld);
|
||||
DUNLOCK();
|
||||
d_drop(dchld);
|
||||
dput(dchld);
|
||||
|
Loading…
Reference in New Issue
Block a user