Messages in this thread | | | Date | Fri, 12 Jul 2002 02:07:27 +0400 | From | Oleg Nesterov <> | Subject | Re: Q: preemptible kernel and interrupts consistency. |
| |
Hello.
I am sorry, may be i do not understand something obvious.
Robert Love wrote: > That was my point, aside from interrupt handlers all the > need_resched-touching code is in sched.c and both Ingo and I verified > everything is locked. > > If interrupts are disabled, there are no interrupts handlers. And if > you are in an interrupt handler, preemption is already disabled.
Is it legal to call wake_up_process(some_task) from process context, with irqs disabled, and current->preempt_count == 0 ?
Then current may have need_resched flag set, and task_rq_unlock() falls into schedule().
Oleg. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |