From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarek Poplawski Subject: Re: tc related lockdep warning. Date: Mon, 25 Sep 2006 14:43:52 +0200 Message-ID: <20060925124352.GA1592@ff.dom.local> References: <20060924212933.GB20123@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Dave Jones , hadi@cyberus.ca, davem@davemloft.net Return-path: Received: from mx10.go2.pl ([193.17.41.74]:3721 "EHLO poczta.o2.pl") by vger.kernel.org with ESMTP id S1750770AbWIYMjj (ORCPT ); Mon, 25 Sep 2006 08:39:39 -0400 To: netdev@vger.kernel.org Content-Disposition: inline In-Reply-To: <20060924212933.GB20123@redhat.com> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On 24-09-2006 23:29, Dave Jones wrote: > ================================= > [ INFO: inconsistent lock state ] > --------------------------------- > inconsistent {softirq-on-R} -> {in-softirq-W} usage. > swapper/0 [HC0[0]:SC1[2]:HE1:SE0] takes: > (police_lock){-+--}, at: [] tcf_police_destroy+0x24/0x8f [act_police] > {softirq-on-R} state was registered at: > [] lock_acquire+0x4b/0x6d > [] _read_lock+0x19/0x28 > [] tcf_act_police_locate+0x26a/0x363 [act_police] ... > [] _write_lock_bh+0x1e/0x2d > [] tcf_police_destroy+0x24/0x8f [act_police] ... > [] __do_softirq+0x78/0xf2 > [] do_softirq+0x5a/0xbe > [] irq_exit+0x3d/0x3f > [] smp_apic_timer_interrupt+0x73/0x78 > [] apic_timer_interrupt+0x2a/0x30 > DWARF2 unwinder stuck at apic_timer_interrupt+0x2a/0x30 > Leftover inexact backtrace: It's probably 2.6.18 and should change a little now (git4) but IMHO main problem stays: it looks tcf_act_police_locate in act_police.c was preempted in read_lock (tcf_police_lookup) - now the same is possible in tcf_hash_lookup. So maybe read_lock_bh will help? Jarek P.