Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2193425imb; Sun, 3 Mar 2019 21:48:04 -0800 (PST) X-Google-Smtp-Source: APXvYqzJteU++aFfml1pqJj7A5Zj/+eBCMI9UYEXIn7NTp/581RywEBBzpaUTtS9GtVCOVJDMlO5 X-Received: by 2002:a63:4d4f:: with SMTP id n15mr17056985pgl.327.1551678484795; Sun, 03 Mar 2019 21:48:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551678484; cv=none; d=google.com; s=arc-20160816; b=UHEsNfYg4TxrBcntS7AgtT0ADPv87NGevcGAqEYpqd2YBe6b8cOagN0dBhly/pT9B1 cpJc7+yAnDvn6V/56L9UolQd5m54GT6geavLT2UvAJH18GHhX2XAeli17i+U6wJ9RGHK aEi7w7+geSk8LK9YKfi1FC7akK7MX7EXt/JOnmzxQ4xknSyTFRFNtLTv1Q0+q7qPrIDb O5UMmFgrV2y7DCE3xbNXGrYXGy3SIs8Ge5N5H+cxSHsL+gikUU94iBsxHBu28NOOP53z rV3PZlEd55ZsIYwCrYygItAudZB5MQ21Y6QV8opRW7VKQH9uIVhOYTSQZs+dejSZhrf+ SfQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=CpNpY/GdgbX6FCG6YXNGl/5zeXgIk6nsO6ZawnHHSX0=; b=K+rJRUX/MTnK5EZuyVWObr5+CeHYimK7Rh9jF0RCbLUR261NTxWqhzDLTCb/KoKkru C1K2y7lodnVF3ChVv9aRa0D+Hq5pwEtGmAAuy1d0P0YTJ84KXKSLUebNvAblrQEFc5Om ySPeok7pfbnSTlsiDQKlOmNOlOHKKBIqP0+bLdnYm0JQJuzBsPWa2br40l5QLeZCxJpK luUOjPWLH3YDCSdJLAJFHEVE0OXDTmyTXH2D6+/h3vRAhUV7tC1eGBevirLlOWmOnZan j/ms6W6RxXXnDFK6cMlhzXpCrOsLad9i08gI/hMd7CZqZPZUmbxG7x8ReUGZJPhNxXiW 4ulQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m10si4552586pgk.386.2019.03.03.21.47.47; Sun, 03 Mar 2019 21:48:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726035AbfCDFr1 (ORCPT + 99 others); Mon, 4 Mar 2019 00:47:27 -0500 Received: from mail.cn.fujitsu.com ([183.91.158.132]:14355 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725550AbfCDFr1 (ORCPT ); Mon, 4 Mar 2019 00:47:27 -0500 X-IronPort-AV: E=Sophos;i="5.58,438,1544457600"; d="scan'208";a="55845583" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 04 Mar 2019 13:47:24 +0800 Received: from G08CNEXCHPEKD03.g08.fujitsu.local (unknown [10.167.33.85]) by cn.fujitsu.com (Postfix) with ESMTP id EB1CC4C5347A; Mon, 4 Mar 2019 13:47:07 +0800 (CST) Received: from ubuntu.g08.fujitsu.local (10.167.226.33) by G08CNEXCHPEKD03.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 4 Mar 2019 13:47:23 +0800 From: Su Yanjun To: , , CC: , , Subject: [PATCH] net: xfrm: Add '_rcu' tag for rcu protected pointer in netns_xfrm Date: Mon, 4 Mar 2019 00:46:43 -0500 Message-ID: <1551678403-23132-1-git-send-email-suyj.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.167.226.33] X-yoursite-MailScanner-ID: EB1CC4C5347A.A0F39 X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: suyj.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For rcu protected pointers, we'd bettter add '__rcu' for them. No functional change. Signed-off-by: Su Yanjun --- include/net/netns/xfrm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/netns/xfrm.h b/include/net/netns/xfrm.h index 59f45b1..d2a36fb 100644 --- a/include/net/netns/xfrm.h +++ b/include/net/netns/xfrm.h @@ -57,7 +57,7 @@ struct netns_xfrm { struct list_head inexact_bins; - struct sock *nlsk; + struct sock __rcu *nlsk; struct sock *nlsk_stash; u32 sysctl_aevent_etime; -- 2.7.4