Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jan 2012 10:05:16 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        freebsd-current@freebsd.org
Cc:        Ian Lepore <freebsd@damnhippie.dyndns.org>, Max Khon <fjoe@samodelkin.net>
Subject:   Re: FILTER_SCHEDULE_THREAD is not a bit-value
Message-ID:  <201201311005.16099.jhb@freebsd.org>
In-Reply-To: <CADe0-4kzRa9MxorrnkwELbY-eF5goBmbg_X6CUZWdys7ci4Wxg@mail.gmail.com>
References:  <CADe0-4kO%2BN0bbBByNcUua6SpG%2BHt7bgEm2kaAoESd=KySwNAHA@mail.gmail.com> <1327945445.1686.36.camel@revolution.hippie.lan> <CADe0-4kzRa9MxorrnkwELbY-eF5goBmbg_X6CUZWdys7ci4Wxg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday, January 31, 2012 3:57:26 am Max Khon wrote:
> No, the text does not imply that only one of the values is supposed to
> be returned (where did you see it). See also KASSERT checks in
> intr_event_handle() -- they clearly show that the intention was to
> allow FILTER_HANDLED and FILTER_SCHEDULE_THREAD to be returned
> simultaneously.

That was the original plan, but I now plan to no longer allow that.  I think I 
posted a thread to that effect on arch@ several months ago.  However, in some 
patches I have to rework ithreads, I remove the bitmask bits and make the 
return value a simple enum of distinct values.

Also, your patch is not really correct I think, note that that code is only
in the !INTR_FITLER case, and we don't allow you to OR together those two
values in the INTR_FILTER case.

-- 
John Baldwin



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