Skip to content

Commit b3cb7a5

Browse files
mchinthwenlingz
authored andcommitted
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>
1 parent cab93c0 commit b3cb7a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hypervisor/arch/x86/notify.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ static void kick_notification(__unused uint32_t irq, __unused void *data)
2525
if (smp_call->func != NULL) {
2626
smp_call->func(smp_call->data);
2727
}
28-
bitmap_clear_nolock(pcpu_id, &smp_call_mask);
28+
bitmap_clear_lock(pcpu_id, &smp_call_mask);
2929
}
3030
}
3131

0 commit comments

Comments
 (0)