On Wed, 3 Jan 2007 15:46:31 -0500, Paul Moore wrote: >This makes me believe that Ingo's patch (which I see is now in Linus' and >Andrew's trees) is the way to go and not the lock re-order approach in Adam's >patch. I'm going to continue to look into this, almost more for my own >education than anything else, but I thought I would mention this lock >dependency message as it seemed relevant to the discussion.
Both Ingo's patch and mine preserved the lock order, in a sense: take the read_read_lock first, and avoid locking the socket if possible. Ingo's patch avoided unlocking and relocking by using some facilities that I must admit my prior ignorance of. So, I agree that if both patches are "correct", then Ingo's is better. I have been running Ingo's patch for the past ~1.5 days, and as far as I can tell it seems to be no worse than mine. The reason for such a guarded description as "no worse than mine" is that I have been experiencing occasoinal system hangs that started in 2.6.20-rc1 without any patch, which I have observed in 2.6.20-rc3 with my patch, and also 2.6.20-rc3 with Ingo's patch. These hangs may be completly unrelated to this selinux issue though and it may be days before get around to studying it more carefully, so I'm happy to see Ingo's patch integrated now. Adam - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html