Skip to contentSkip to conversation

kernel-use-lockless-list-for-smp_call_function_single.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jan 31, 2014 Block layer

lore
Share & tools
lore
#0 lore raw

Subject: [merged] kernel-use-lockless-list-for-smp_call_function_single.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 31 Jan 2014 11:16:03 -0800

The patch titled
Subject: kernel: use lockless list for smp_call_function_single
has been removed from the -mm tree. Its filename was
kernel-use-lockless-list-for-smp_call_function_single.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Christoph Hellwig <[email protected]>
Subject: kernel: use lockless list for smp_call_function_single

Make smp_call_function_single and friends more efficient by using a lockless list.

---

 include/linux/blkdev.h |    5 ---
 include/linux/smp.h    |    6 +++-
 kernel/smp.c           |   51 +++++++++------------------------------
 3 files changed, 19 insertions(+), 43 deletions(-)
include/linux/blkdev.h renamed from include/linux/blkdev.h~kernel-use-lockless-list-for-smp_call_function_single +1 -4
diff -puN include/linux/blkdev.h~kernel-use-lockless-list-for-smp_call_function_single include/linux/blkdev.h
@@ -95,10 +95,7 @@ enum rq_cmd_type_bits {
  * as well!
  */
 struct request {
-	union {
-		struct list_head queuelist;
-		struct llist_node ll_list;
-	};
+	struct list_head queuelist;
 	union {
 		struct call_single_data csd;
 		struct work_struct mq_flush_data;
include/linux/smp.h renamed from include/linux/smp.h~kernel-use-lockless-list-for-smp_call_function_single +5 -1
diff -puN include/linux/smp.h~kernel-use-lockless-list-for-smp_call_function_single include/linux/smp.h
@@ -11,12 +11,16 @@
 #include <linux/list.h>
 #include <linux/cpumask.h>
 #include <linux/init.h>
+#include <linux/llist.h>
 
 extern void cpu_idle(void);
 
 typedef void (*smp_call_func_t)(void *info);
 struct call_single_data {
-	struct list_head list;
+	union {
+		struct list_head list;
+		struct llist_node llist;
+	};
 	smp_call_func_t func;
 	void *info;
 	u16 flags;
kernel/smp.c renamed from kernel/smp.c~kernel-use-lockless-list-for-smp_call_function_single +12 -34

98 lines not on this page · raw message