[PATCH] ia64: fix perfmon bug that could result in kernel hang
This patch fixes a potential kernel hang in perfmon during PFM_UNLOAD_CONTEXT. This commands requires that the monitored task be stopped (except when self-monitoring). The task state tests in check_task_state() were incorrect and an actively running task was accepted for PFM_UNLOAD_CONTEXT. This eventually leads to a kernel hang. Signed-off-by: Stephane Eranian <eranian@hpl.hp.com> Signed-off-by: David Mosberger <davidm@hpl.hp.com>
Showing
Please register or sign in to comment