From: Eric Dumazet <dada1@cosmosbay.com>
Date: Sat, 28 Feb 2009 09:51:11 +0100
This adds new overhead for TCP which has to hold the socket
lock for other reasons in these paths.
I don't get how an atomic_t operation is cheaper than a
lock_sock/release_sock. Is it the case that in many
executions of these paths only atomic_read()'s are necessary?
I actually think this scheme is racy. There is a reason we
have to hold the socket lock when doing memory scheduling.
Two threads can get in there and say "hey I have enough space
already" even though only enough space is allocated for one
of their requests.
What did I miss? :)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html