[PATCH 12/27] net/core: Assign a name to devnet_rename_seq.dep_map

From: Bart Van Assche
Date: Wed Nov 28 2018 - 18:46:02 EST


This patch makes lockdep reports about devnet_rename_seq more informative.

Cc: David S. Miller <davem@xxxxxxxxxxxxx>
Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx>
---
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