Re: [PATCH][RFC] kthread abstraction

From: Dave Hansen (haveblue@us.ibm.com)
Date: Fri Feb 01 2002 - 12:21:12 EST


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/



This archive was generated by hypermail 2b29 : Thu Feb 07 2002 - 21:00:16 EST