lkml.org 
[lkml]   [2018]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 12/27] net/core: Assign a name to devnet_rename_seq.dep_map
    Date
    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
    \
     
     \ /
      Last update: 2018-11-29 00:46    [W:3.014 / U:0.064 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site