[PATCH] Update mcast rwlock for RT

From: Daniel Walker
Date: Tue Jan 03 2006 - 12:25:58 EST



Corrects this mcast lock for RT . Seems like this should
really be an rwlock_init() .

Signed-Off-By: Daniel Walker <dwalker@xxxxxxxxxx>

Index: linux-2.6.15/net/ipv6/mcast.c
===================================================================
--- linux-2.6.15.orig/net/ipv6/mcast.c
+++ linux-2.6.15/net/ipv6/mcast.c
@@ -224,7 +224,7 @@ int ipv6_sock_mc_join(struct sock *sk, i

mc_lst->ifindex = dev->ifindex;
mc_lst->sfmode = MCAST_EXCLUDE;
- mc_lst->sflock = RW_LOCK_UNLOCKED;
+ mc_lst->sflock = RW_LOCK_UNLOCKED(mc_lst->sflock);
mc_lst->sflist = NULL;

/*


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