]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - kernel/fork.c
[PATCH] lockdep: core
[net-next-2.6.git] / kernel / fork.c
index b7db7fb74f531ac6d1b3818a1c61dcf27c22c361..7f48abdd7bb60336b245b897c61e94e9538fb05a 100644 (file)
@@ -1061,6 +1061,11 @@ static task_t *copy_process(unsigned long clone_flags,
        p->hardirq_context = 0;
        p->softirq_context = 0;
 #endif
+#ifdef CONFIG_LOCKDEP
+       p->lockdep_depth = 0; /* no locks held yet */
+       p->curr_chain_key = 0;
+       p->lockdep_recursion = 0;
+#endif
 
        rt_mutex_init_task(p);