Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Apr 2003 14:00:13 -0400 (EDT)
From:      Garrett Wollman <wollman@lcs.mit.edu>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/dev/fxp if_fxp.c if_fxpvar.h
Message-ID:  <200304291800.h3TI0Dnr040242@khavrinen.lcs.mit.edu>
In-Reply-To: <20030429.115524.21927823.imp@bsdimp.com>
References:  <200304290545.h3T5j99Y076513@repoman.freebsd.org> <20030429133708.A84234@grasshopper.cs.duke.edu> <20030429.115524.21927823.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Tue, 29 Apr 2003 11:55:24 -0600 (MDT), "M. Warner Losh" <imp@bsdimp.com> said:

> This likely means that some higher level of locking is necessary so
> that we can make sure that the interrupts can't happen once detach
> starts.

What am I missing here?  You can just disable interrupts in the
hardware first thing, while holding whatever lock the handler would
normally need to obtain, then force-terminate the handler thread if it
happens to be waiting for that lock after you're done tearing it down.

-GAWollman



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