[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1463677339.18194.197.camel@edumazet-glaptop3.roam.corp.google.com>
Date: Thu, 19 May 2016 10:02:19 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Alexei Starovoitov <alexei.starovoitov@...il.com>
Cc: netdev <netdev@...r.kernel.org>,
Jamal Hadi Salim <jhs@...atatu.com>,
John Fastabend <john.fastabend@...il.com>,
Kevin Athey <kda@...gle.com>,
Xiaotian Pei <xiaotian@...gle.com>
Subject: Re: [RFC net-next] net: sched: do not acquire qdisc spinlock in
qdisc/class stats dump
On Thu, 2016-05-19 at 09:08 -0700, Alexei Starovoitov wrote:
> initially I thought that above line could have been qdisc_root_sleeping_lock()
> but then realized that moving out ASSERT_RTNL makes more sense. Good call.
> The only thing not clear to me is why '!defined(CONFIG_LOCKDEP)' ?
> Just extra caution? I think should be fine without it.
I believe it is better to exercise this code path (using spinlock) even
on 64bit kernel for kernels with LOCKDEP.
This could avoid some hard to debug bugs occurring on 32bit builds.
Powered by blists - more mailing lists