From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Berg Subject: Re: [PATCH] wireless extensions: play with netns Date: Thu, 18 Jun 2009 02:02:06 +0200 Message-ID: <1245283327.31588.74.camel@johannes.local> References: <1245263058.31588.38.camel@johannes.local> <1245276899.31588.57.camel@johannes.local> <1245282099.31588.69.camel@johannes.local> Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-r63WaNt1gsUUaBg4KPBB" Cc: John Linville , Netdev , linux-wireless , "Eric W. Biederman" , Alexey Dobriyan To: "Eric W. Biederman" Return-path: In-Reply-To: Sender: linux-wireless-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org --=-r63WaNt1gsUUaBg4KPBB Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2009-06-17 at 16:54 -0700, Eric W. Biederman wrote: > > Subject: net: make namespace iteration possible under RCU > > > > We already call rcu_barrier(), so all we need to take > > care of is using proper RCU list add/del primitives. >=20 > This of course gives you a network namespace that can be found by for_eac= h_net rcu > while the per net exit functions are running. I think that opens up to r= aces > that I don't want to think about. Indeed. Can we move the rcu_barrier() up? Or we could insert a synchronize_rcu() (which is sufficient for rcu_read_lock) before the exit functions are run? > I still haven't tracked down how I am occasionally getting time wait sock= ets > with an invalid network namespace. Ouch. johannes --=-r63WaNt1gsUUaBg4KPBB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIcBAABAgAGBQJKOYP6AAoJEODzc/N7+QmaX2AQAL1fupDuQBJQV+iCimB+r8Ek V9Bzl15XtroN6Rqd6wwTxLQLKzJS4ifwfRSjLTofgeXEKV9hxBuyDp+ZZEa2A/FB a9RKZZ0tsf4+lhT1AzXl+tWl8bXGFvPTz1Fo7Rx5i/b5JkRQrVJgwF6K6DP14yTj aZb+2n1ttbdH1bcmL+teaRZH7GOFaNbKaav/ryu3RWuAa6mVAS/TrO3gKfVb2s6I yBNp7qN7bfbX3d8HbTFsvhmK/ZrOad4+kxh/YJdA2DUHywD8SkH2x9j+Br6zG6Vg frUprJK9bpE3uC/4n1JbkLKlO5OGyeulqWgtipnM/imG8hcXkipBrxPb/lSMuRzB 0LCXOlOdBDEKYw4J5qug+lUaIvsQNm/jSyCk82ihViiWfe/4WODH78uTahyrw45R g5fInk5c/pWHJowBEsGSdZv9OFuFZHZYXdjm/HfbyYEat/Boi1GpzsA/CMqHvpSv +SySw0NX8TDWgSjd9epIIsJoasQ8KsB3vYSsAKOHIioycwa32DBEHsFfaeEzi4qq /t/3Wh8+KXb5Y/DMqDVwjLqxPYfF6COkNRZP/XbhQrQEXC986miiRml05bdexKQv Gyvz2Xy/SQbS3mXi/rFn04wJ0DdZLuwHR6JOGvHRdXraZp0soCJC85wtnIPzPC+Q l9OccWf08uafbvWOpUqN =Lbm6 -----END PGP SIGNATURE----- --=-r63WaNt1gsUUaBg4KPBB-- -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html