On Tue, 2007-07-31 at 11:25 +0200, Ingo Molnar wrote:
> * Ingo Molnar <[email protected]> wrote:
>
> > * Gregory Haskins <[email protected]> wrote:
> >
> > > This code allows FUNCTION_CALL IPIs to become preemptible by
> > > executing them in kthread context instead of interrupt context.
> > > They are referred to as "Virtual Function Call IPIs" (VFCIPI)
> > > because we no longer rely on the actual FCIPI facility. Instead we
> > > schedule a thread to run. This essentially replaces the synchronous
> > > FCIPI with an async RESCHEDULE IPI.
> >
> > why do we need this? It's quite complex and brings little extra
> > AFAICS. See the "schedule_on_each_cpu-enhance.patch" from Peter
> > Ziljstra that lets a function to be executed on all CPUs. That should
> > be extended (trivially) to execute a function on another CPU. That's
> > all we need.
>
> as far as the prioritization of function calls goes, _that_ makes sense,
> but it should not be a separate API but should be done to our normal
> workqueue APIs. That not only extends the effects of priorities to all
> current workqueue using kernel subsystems, but also keeps the API more
> unified. We really dont want to have too many -rt specific APIs.
I agree with you that having some kind of priority and cpu-binding
specifiers for work-queues would be very cool indeed. However, note
that I didn't actually introduce a new API(*), per se. I simply worked
under the existing smp_call_function[_single]() API.
Using the smp_call_functions is critical design factor, however. I
really want clients of this function to seamlessly transition to
threaded mode. So even if we ultimately can modify work-queues to have
those features mentioned, IMO we still need to modify the underlying
smp_call_function API to use the new workqueue stuff. And more
importantly, the new workqueue APIs will have to be as flexible as the
current implementation to work in various modes (e.g. in_atomic=1 or 0,
etc).
(*)Ok, ok...i admit...There is one new API: That is the legacy access
to the real FCIPI calls (which BTW, ive changed from
"smp_call_function__nodelay" to "raw_smp_call_function" in my latest
(and unreleased) series. This makes them more in sync with some of the
other naming conventions in -rt). So technically you are right ;) but
that is more of an implementation detail. There are no users of the new
API other than the VFCIPI code.
Regards,
-Greg
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]