Skip to contentSkip to conversation

+ kernel-use-lockless-list-for-smp_call_function_single.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Nov 1, 2013 Block layer

lore
Share & tools
lore
#0 lore raw

Subject: + kernel-use-lockless-list-for-smp_call_function_single.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 01 Nov 2013 14:58:21 -0700

The patch titled
Subject: kernel: use lockless list for smp_call_function_single
has been added to the -mm tree. Its filename is
kernel-use-lockless-list-for-smp_call_function_single.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/kernel-use-lockless-list-for-smp_call_function_single.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/kernel-use-lockless-list-for-smp_call_function_single.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
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 +13 -38

106 lines not on this page · raw message

_

Patches currently in -mm which might be from [email protected] are

hfsplus-add-metadata-files-clump-size-calculation-functionality.patch hfsplus-implement-attributes-files-header-node-initialization-code.patch hfsplus-implement-attributes-files-header-node-initialization-code-v2.patch hfsplus-implement-attributes-file-creation-functionality.patch hfsplus-implement-attributes-file-creation-functionality-v2.patch linux-next.patch revert-softirq-add-support-for-triggering-softirq-work-on-softirqs.patch kernel-remove-config_use_generic_smp_helpers.patch kernel-provide-a-__smp_call_function_single-stub-for-config_smp.patch kernel-fix-generic_exec_single-indication.patch llists-move-llist_reverse_order-from-raid5-to-llistc.patch kernel-use-lockless-list-for-smp_call_function_single.patch blk-mq-use-__smp_call_function_single-directly.patch