From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 21 Jan 2019 19:55:48 -0000 Received: from mga06.intel.com ([134.134.136.31]) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1gkerL-0003OO-9m for speck@linutronix.de; Sat, 19 Jan 2019 01:51:39 +0100 From: Andi Kleen Subject: [MODERATED] [PATCH v5 23/27] MDSv5 22 Date: Fri, 18 Jan 2019 16:50:38 -0800 Message-Id: <569424900128cd600f56de5d5c91c8f1ca0b2ad5.1547858934.git.ak@linux.intel.com> In-Reply-To: References: In-Reply-To: References: To: speck@linutronix.de Cc: Andi Kleen List-ID: From: Andi Kleen Subject: mds: Opt out tcp tasklet to not touch user data Mark the tcp tasklet as not needing an implicit cpu clear flush. If any is needed it will be triggered by the skb_* hooks. Signed-off-by: Andi Kleen --- net/ipv4/tcp_output.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 730bc44dbad9..06bc635a54ca 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -903,9 +903,10 @@ void __init tcp_tasklet_init(void) struct tsq_tasklet *tsq = &per_cpu(tsq_tasklet, i); INIT_LIST_HEAD(&tsq->head); - tasklet_init(&tsq->tasklet, + tasklet_init_flags(&tsq->tasklet, tcp_tasklet_func, - (unsigned long)tsq); + (unsigned long)tsq, + TASKLET_NO_USER); } } -- 2.17.2