Skip to contentSkip to conversation

netfilter: conntrack: Change to deferable work queue

PATCH Applied Subash Abhinov Kasiviswanathan 2 participants 2 messages Jul 21, 2017 – Jul 31, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netfilter: conntrack: Change to deferable work queue

Delayed workqueue causes wakeups to idle CPUs. This was causing a power impact for devices. Use deferable work queue instead so that gc_worker runs when CPU is active only.

---
 net/netfilter/nf_conntrack_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/nf_conntrack_core.c +1 -1
index 9979f46..2a51ef9 100644
@@ -1084,7 +1084,7 @@ static void gc_worker(struct work_struct *work)
 
 static void conntrack_gc_work_init(struct conntrack_gc_work *gc_work)
 {
-	INIT_DELAYED_WORK(&gc_work->dwork, gc_worker);
+	INIT_DEFERRABLE_WORK(&gc_work->dwork, gc_worker);
 	gc_work->next_gc_run = HZ;
 	gc_work->exiting = false;
 }
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw
Quoted 3 lines · Subash Abhinov Kasiviswanathan

Delayed workqueue causes wakeups to idle CPUs. This was causing a power impact for devices. Use deferable work queue instead so that gc_worker runs when CPU is active only.

Applied, thanks.