while ((cur = cur->next) != head) {
dentry = list_entry(cur, struct dentry, d_alias);
- afs_Trace3(afs_iclSetp, CM_TRACE_TRYFLUSHDCACHECHILDREN,
+ if (ICL_SETACTIVE(afs_iclSetp)) {
+ AFS_GLOCK();
+ afs_Trace3(afs_iclSetp, CM_TRACE_TRYFLUSHDCACHECHILDREN,
ICL_TYPE_POINTER, ip, ICL_TYPE_STRING,
dentry->d_parent->d_name.name, ICL_TYPE_STRING,
dentry->d_name.name);
+ AFS_GUNLOCK();
+ }
if (!list_empty(&dentry->d_hash) && !list_empty(&dentry->d_subdirs))
__shrink_dcache_parent(dentry);