linux-tasklist-lock-export-detection-20020829
[openafs.git] / src / afs / afs_osi.c
index 28714f7..468655f 100644 (file)
@@ -793,13 +793,17 @@ void afs_osi_TraverseProcTable()
 {   
     struct task_struct *p;
 
+#ifdef EXPORTED_TASKLIST_LOCK
     read_lock(&tasklist_lock);
+#endif
     for_each_task(p) if (p->pid) {
         if (p->state & TASK_ZOMBIE)
             continue;
        afs_GCPAGs_perproc_func(p);
     }
+#ifdef EXPORTED_TASKLIST_LOCK
     read_unlock(&tasklist_lock);
+#endif
 }   
 #endif