Re: problem in tcp_v4_synq_add ?

From: David S. Miller
Date: Wed Mar 10 2004 - 16:46:09 EST


On Wed, 10 Mar 2004 10:04:41 +0100
Paul Wagland <paul@xxxxxxxxxxx> wrote:

> > Nope, the listening socket's socket lock is held, and all things that
> > add members to these hash chains hold that lock.
>
> Is that the same as saying that the write_lock() is not needed at all?
> Since it is already guaranteed to be protected with a different lock?

Also not true, as other pieces of code traverse the list as a reader
without holding the listening sockets lock.
-
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/