Reapply "smp: Use migrate disable/enable in smp_call_function_single_async()"

This reverts commit f37c1e4577.
This commit is contained in:
Ksawlii 2024-12-18 11:24:48 +01:00
parent f6ee50f616
commit 2ad6f215fd

View file

@ -547,7 +547,7 @@ int smp_call_function_single_async(int cpu, struct __call_single_data *csd)
{
int err = 0;
preempt_disable();
migrate_disable();
if (csd->flags & CSD_FLAG_LOCK) {
err = -EBUSY;
@ -560,7 +560,7 @@ int smp_call_function_single_async(int cpu, struct __call_single_data *csd)
err = generic_exec_single(cpu, csd);
out:
preempt_enable();
migrate_enable();
return err;
}