Messages in this thread Patch in this message | | | From | Bart Van Assche <> | Subject | [PATCH 12/27] net/core: Assign a name to devnet_rename_seq.dep_map | Date | Wed, 28 Nov 2018 15:43:10 -0800 |
| |
This patch makes lockdep reports about devnet_rename_seq more informative.
Cc: David S. Miller <davem@davemloft.net> Signed-off-by: Bart Van Assche <bvanassche@acm.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
| |