Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Dec 2003 00:06:21 -0800 (PST)
From:      Don Lewis <truckman@FreeBSD.org>
To:        mezz7@cox.net
Cc:        gibbs@FreeBSD.org
Subject:   Re: The reboot doesn't work anymore in today -CURRENT..
Message-ID:  <200312190806.hBJ86LeF076901@gw.catspoiler.org>
In-Reply-To: <200312190753.hBJ7rGeF076868@gw.catspoiler.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 18 Dec, Don Lewis wrote:

> Something that looks odd to me is that it appears that
> aic_terminate_recovery_thread() can be called twice in at least one
> case.  In ahc_free(), ahc_terminate_recovery_thread() is unconditionaly
> called, and then depending on the init level, ahc_shutdown() may be
> called.  When the recovery thread is killed,
> aic->platform_data->recovery_thread does not get cleared, so if the
> first call to ahc_terminate_recovery_thread() kills the recovery thread,
> the second call to ahc_terminate_recovery_thread() (from ahc_shutdown())
> will hang because the recovery thread will not be around to wake it up
> the second time.
> 
> It looks like either ahc_terminate_recovery_thread() or
> aic_recovery_thread() should clear aic->platform_data->recovery_thread
> when the thread exits.

I was just comparing the ahc code with the ahd code and noticed that
ahc_shutdown() calls ahc_terminate_recovery_thread(), but ahd_shutdown()
does not call ahd_terminate_recovery_thread() ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312190806.hBJ86LeF076901>