Re: [PATCH][RFC] kthread abstraction

Dave Hansen (haveblue@us.ibm.com)
Fri, 01 Feb 2002 09:21:12 -0800


I notice that the BKL is held for a short time, while daemonizing:
+
lock_kernel();
+
daemonize();
+
reparent_to_init();
+
strcpy(current->comm, kth->name);
+
unlock_kernel();

Have you noticed that a lot of kernel daemons hold the BKL whenever
they're active? Things like nfsd are always holding the BKL, only
releasing it on schedule(), and exit. Is there any compelling reason to
hold the BKL during times other than during the daemonize() process?

-- 
Dave Hansen
haveblue@us.ibm.com

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/