Fix to kernel hang in smp_call_function

smp_call_function:
 smp_call_mask can be modified by more than one process which can cause kernel hang and timeout

Adding a lock to smp_call_mask to prevent race condition

Tracked-On: #1606
Acked-by:   Xu, Anthony <anthony.xu.intel.com>
Signed-off-by: Manisha Chinthapally <manisha.chinthapally@intel.com>
This commit is contained in:
Manisha Chinthapally 2018-10-25 10:14:00 -07:00 committed by wenlingz
parent cab93c053a
commit b3cb7a53d4
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ static void kick_notification(__unused uint32_t irq, __unused void *data)
if (smp_call->func != NULL) {
smp_call->func(smp_call->data);
}
bitmap_clear_nolock(pcpu_id, &smp_call_mask);
bitmap_clear_lock(pcpu_id, &smp_call_mask);
}
}