Skip to contentSkip to conversation

preempt_disable() imbalance in take_machine_down()? [linux-2.6.18-xen.hg]

DISCUSSION Laszlo Ersek 2 participants 2 messages Apr 5, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

please excuse the lame question.

Looking at take_machine_down() and __xen_suspend() in "drivers/xen/core/machine_reboot.c", assuming "fast_suspend" is false, it seems that after the loop in take_machine_down() completes, preempt_enable() is never called. Is this intentional? If so, how/why does it work?

Thank you very much,
Laszlo Ersek

#1 lore raw
Quoted 5 lines
Quoted 1 line
Quoted 1 line · Laszlo Ersek

Looking at take_machine_down() and __xen_suspend() in "drivers/xen/core/machine_reboot.c", assuming "fast_suspend" is false, it seems that after the loop in take_machine_down() completes, preempt_enable() is never called. Is this intentional?

Probably not.

Quoted 1 line

If so, how/why does it work?

Because PREEMPT depends on !XEN in kernel/Kconfig.preempt.

Jan