kthreads->kproc and back to kthread.. next patch

Pawel Jakub Dawidek pjd at FreeBSD.org
Wed Oct 24 02:41:15 PDT 2007


On Sun, Oct 21, 2007 at 04:01:02PM -0700, Julian Elischer wrote:
> Here is the link to the next patch.
[...]

I just want to point one more thing to look at. Currently we have no
clean KPI to operate on file systems from within a kernel thread, thus
hacks like:

	if (td->td_proc->p_fd->fd_rdir == NULL)
		td->td_proc->p_fd->fd_rdir = rootvnode;
	if (td->td_proc->p_fd->fd_cdir == NULL)
		td->td_proc->p_fd->fd_cdir = rootvnode;

Now, that all those separate kernel threads are going to end up in one
process, we may want to revise this.

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20071024/71001a87/attachment.pgp


More information about the freebsd-current mailing list