- generic-ipi-fix-the-race-between-generic_smp_call_function_-and-hotplug_cfd-fix.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     generic-ipi-fix-the-race-between-generic_smp_call_function_-and-hotplug_cfd fix
has been removed from the -mm tree.  Its filename was
     generic-ipi-fix-the-race-between-generic_smp_call_function_-and-hotplug_cfd-fix.patch

This patch was dropped because of confusion

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: generic-ipi-fix-the-race-between-generic_smp_call_function_-and-hotplug_cfd fix
From: Xiao Guangrong <xiaoguangrong@xxxxxxxxxxxxxx>

This patch is incomplete and thanks for Peter Zijlstra to point out

Signed-off-by: Xiao Guangrong <xiaoguangrong@xxxxxxxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxx>
Cc: Jens Axboe <jens.axboe@xxxxxxxxxx>
Cc: Nick Piggin <nickpiggin@xxxxxxxxxxxx>
Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Cc: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 kernel/smp.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff -puN kernel/smp.c~generic-ipi-fix-the-race-between-generic_smp_call_function_-and-hotplug_cfd-fix kernel/smp.c
--- a/kernel/smp.c~generic-ipi-fix-the-race-between-generic_smp_call_function_-and-hotplug_cfd-fix
+++ a/kernel/smp.c
@@ -136,7 +136,8 @@ __generic_smp_call_function_interrupt(in
 		if (!cpumask_test_and_clear_cpu(cpu, data->cpumask))
 			continue;
 
-		data->csd.func(data->csd.info);
+		if (run_callbacks)
+			data->csd.func(data->csd.info);
 
 		refs = atomic_dec_return(&data->refs);
 		WARN_ON(refs < 0);
@@ -187,7 +188,8 @@ __generic_smp_call_function_single_inter
 		 */
 		data_flags = data->flags;
 
-		data->func(data->info);
+		if (run_callbacks)
+			data->func(data->info);
 
 		/*
 		 * Unlocked CSDs are valid through generic_exec_single():
_

Patches currently in -mm which might be from xiaoguangrong@xxxxxxxxxxxxxx are

linux-next.patch
generic-ipi-make-struct-call_function_data-lockless.patch
generic-ipi-make-struct-call_function_data-lockless-cleanup.patch
generic-ipi-cleanup-for-generic_smp_call_function_interrupt.patch
kernel-smpc-relocate-some-code.patch
generic-ipi-fix-the-race-between-generic_smp_call_function_-and-hotplug_cfd-fix.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux