Subject: Re: kernel thread (xenbus_probe) not terminating
To: Tobias Nygren <tnn+nbsd@nygren.pp.se>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: current-users
Date: 03/28/2007 20:30:23
On Wed, Mar 28, 2007 at 12:56:12PM +0200, Tobias Nygren wrote:
> Sarton O'Brien wrote:
> >Hi,
> >
> >Although this problem is specific to xen, the cause is most likely due 
> >to recent changes within current.
> >
> >xenbus_probe is showing up as a zombie under all my current domus:
> >
> >2 ?       ZW   0:00.00 (xenbus_probe)
> >
> >dom0 and domu (kernel and userland) built from CVS - Wed Mar 28 
> >10:14:18 EST 2007.
> >
> >If there is something else I can provide, let me know.
> >
> >So far this problem has not caused me any grief that I am aware of, I 
> >figured it was worthwhile mentioning because it could, in the end, 
> >help resolve an unrelated problem ...
> >
> >Sarton
> 
> Not familiar with xen, but it looks like xenbus_probe() is missing
> a kthread_exit() on a reachable code path.

The function passed to kthread_create1() is xenbus_probe_init(), not
xenbus_probe().  xenbus_probe_init() does proper kthread_exit().


-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--