Re: [patch] lockdep, annotate slocks: turn lockdep off for them

From: Herbert Xu
Date: Sat Jul 01 2006 - 10:07:54 EST


On Sat, Jul 01, 2006 at 07:06:22AM -0700, Miles Lane wrote:
>
> >@@ -3260,6 +3268,8 @@ while (0)
> > SET_NETDEV_DEV(dev, sdev);
> > if (ret >= 0)
> > ret = register_netdevice(dev);
> >+
> >+ lockdep_set_class(&dev->_xmit_lock, &hostap_netdev_xmit_lock_key);
> > rtnl_unlock();
> > if (ret < 0) {
> > printk(KERN_WARNING "%s: register netdevice failed!\n",
>
> After rebuilding with this patch, I still get the lockdep message.
> Everything is the same except now the "other info" section reads:

Perhaps the same trick needs to be applied to the queue lock?

Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/