Re: [PATCH] replace deprecated RW_LOCK_UNLOCKED innet/dccp/proto.c

From: Steven Rostedt
Date: Wed Dec 10 2008 - 14:01:38 EST



On Wed, 10 Dec 2008, Eric Dumazet wrote:

> cced netdev

Thanks,

>
> Steven Rostedt a ?crit :
> >
> > struct inet_hashinfo __cacheline_aligned dccp_hashinfo = {
> > - .lhash_lock = RW_LOCK_UNLOCKED,
> > + .lhash_lock = __RW_LOCK_UNLOCKED(dccp_hashinfo.lhash_lock),
> > .lhash_users = ATOMIC_INIT(0),
> > .lhash_wait = __WAIT_QUEUE_HEAD_INITIALIZER(dccp_hashinfo.lhash_wait),
> > };
> > --
>
> Hum... this rwlock doesnt exist anymore on net-next-2.6, all this stuff
> was converted to RCU for upcoming 2.6.29
>
> struct inet_hashinfo dccp_hashinfo;
> EXPORT_SYMBOL_GPL(dccp_hashinfo);
>
> I guess such a patch wont ease David job when 2.6.29 merge window opens

One of the requirements in the new rt git tree is that all rwlocks must
use the __RW_LOCK_UNLOCK(lock) macro. I had to fix it in our tree, but
whenever I do a clean up patch, I like to share it ;-)

-- Steve

--
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/