Skip to contentSkip to conversation

context-switch on IA64

DISCUSSION [email protected] 2 participants 2 messages Mar 31, 2004

lore
Share & tools
lore
#0 lore raw

hello,

there is something I can't understand in scheduler of 2.6.3 (with preemption) on IA64.

I made a test on the "prev" task just before the "context_switch" (in fact, just before the "prepare_switch_arch") to know if a specific task was still on the runqueue :

	BUG_ON( (prev == mytask) && prev->array )

and I made the same test just after the "context_switch" (before the "finisk_task"). Eventually, the 2nd BUG_ON is triggered but not the 1st one.

So the question is : how the task has been re-activated during a context_switch ?

Sincerly,

Signature · 1 line
Julien
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · On Wed, 31 Mar 2004 12:03:08 +0200, [email protected] said:

Julien> So the question is : how the task has been re-activated during a Julien> context_switch ?

Note that prepare_arch_switch() drops the runqueue lock.

	--david