Skip to contentSkip to conversation

blk-mq-use-__smp_call_function_single-directly.patch removed from -mm tree

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

lore
Share & tools
lore
#0 lore raw

Subject: [merged] blk-mq-use-__smp_call_function_single-directly.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 09 Jan 2014 14:26:40 -0800

The patch titled
Subject: blk-mq: use __smp_call_function_single directly
has been removed from the -mm tree. Its filename was
blk-mq-use-__smp_call_function_single-directly.patch

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

------------------------------------------------------
From: Christoph Hellwig <[email protected]>
Subject: blk-mq: use __smp_call_function_single directly

Now that __smp_call_function_single is available for all builds and uses llists to queue up items without taking a lock or disabling interrupts there is no need to wrap around it in the block code.

---

 block/blk-mq-cpu.c |   31 -------------------
 block/blk-mq.c     |   68 ++++++-------------------------------------
 block/blk-mq.h     |    1 
 3 files changed, 11 insertions(+), 89 deletions(-)
block/blk-mq-cpu.c renamed from block/blk-mq-cpu.c~blk-mq-use-__smp_call_function_single-directly +0 -31
diff -puN block/blk-mq-cpu.c~blk-mq-use-__smp_call_function_single-directly block/blk-mq-cpu.c
@@ -28,32 +28,6 @@ static int blk_mq_main_cpu_notify(struct
 	return NOTIFY_OK;
 }
 
-static void blk_mq_cpu_notify(void *data, unsigned long action,
-			      unsigned int cpu)
-{
-	if (action == CPU_DEAD || action == CPU_DEAD_FROZEN) {
-		/*
-		 * If the CPU goes away, ensure that we run any pending
-		 * completions.
-		 */
-		struct llist_node *node;
-		struct request *rq;
-
-		local_irq_disable();
-
-		node = llist_del_all(&per_cpu(ipi_lists, cpu));
-		while (node) {
-			struct llist_node *next = node->next;
-
-			rq = llist_entry(node, struct request, ll_list);
-			__blk_mq_end_io(rq, rq->errors);
-			node = next;
-		}
-
-		local_irq_enable();
-	}
-}
-
 static struct notifier_block __cpuinitdata blk_mq_main_cpu_notifier = {
 	.notifier_call	= blk_mq_main_cpu_notify,
 };
@@ -82,12 +56,7 @@ void blk_mq_init_cpu_notifier(struct blk
 	notifier->data = data;
 }
 
-static struct blk_mq_cpu_notifier __cpuinitdata cpu_notifier = {
-	.notify = blk_mq_cpu_notify,
-};
-
 void __init blk_mq_cpu_init(void)
 {
 	register_hotcpu_notifier(&blk_mq_main_cpu_notifier);
-	blk_mq_register_cpu_notifier(&cpu_notifier);
 }
block/blk-mq.c renamed from block/blk-mq.c~blk-mq-use-__smp_call_function_single-directly +11 -56

92 lines not on this page · raw message