[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181128234325.110011-13-bvanassche@acm.org>
Date: Wed, 28 Nov 2018 15:43:10 -0800
From: Bart Van Assche <bvanassche@....org>
To: mingo@...hat.com
Cc: peterz@...radead.org, tj@...nel.org, johannes.berg@...el.com,
linux-kernel@...r.kernel.org, Bart Van Assche <bvanassche@....org>,
"David S . Miller" <davem@...emloft.net>
Subject: [PATCH 12/27] net/core: Assign a name to devnet_rename_seq.dep_map
This patch makes lockdep reports about devnet_rename_seq more informative.
Cc: David S. Miller <davem@...emloft.net>
Signed-off-by: Bart Van Assche <bvanassche@....org>
---
net/core/dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/core/dev.c b/net/core/dev.c
index ddc551f24ba2..8c109a1624ba 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -194,7 +194,7 @@ static DEFINE_SPINLOCK(napi_hash_lock);
static unsigned int napi_gen_id = NR_CPUS;
static DEFINE_READ_MOSTLY_HASHTABLE(napi_hash, 8);
-static seqcount_t devnet_rename_seq;
+static seqcount_t devnet_rename_seq = SEQCNT_ZERO(devnet_rename_seq);
static inline void dev_base_seq_inc(struct net *net)
{
--
2.20.0.rc0.387.gc7a69e6b6c-goog
Powered by blists - more mailing lists