[IA64] perfmon: enable interrupts around semaphore call
fix a problem in pfm_handle_work() where a task may go to sleep in down_interruptible() with interrupts disabled. This may happen only for a monitored thread for which the PFM_FL_NOTIFY_BLOCK flag is set. The fix re-enables interrupts around the semaphore call. It is safe to do so because pfm_handle_work() is called from do_notify_user() which is called only when the task is about to leave the kernel, i.e., no risk of stack overflow because of interrupt nesting. fix a debug printk warning in pfm_write_pmcs() signed-off-by: Stephane Eranian <eranian@hpl.hp.com> ack-by: David Mosberger <davidm@hpl.hp.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Showing
Please register or sign in to comment