[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20081120.203946.89534386.davem@davemloft.net>
Date: Thu, 20 Nov 2008 20:39:46 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: dada1@...mosbay.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] net: convert TCP/DCCP ehash rwlocks to spinlocks
From: Eric Dumazet <dada1@...mosbay.com>
Date: Thu, 20 Nov 2008 19:53:56 +0100
> Now TCP & DCCP use RCU lookups, we can convert ehash rwlocks to spinlocks.
>
> /proc/net/tcp and other seq_file 'readers' can safely be converted to 'writers'.
>
> This should speedup writers, since spin_lock()/spin_unlock()
> only use one atomic operation instead of two for write_lock()/write_unlock()
>
> Signed-off-by: Eric Dumazet <dada1@...mosbay.com>
Nice work, applied, thanks Eric.
Feel free to provide lat_connect and similar before/after numbers for
changes like this in the future :)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists