From: Neil Horman Date: Fri, 9 Mar 2012 22:50:24 +0000 (-0800) Subject: [SCSI] fcoe: reduce contention for fcoe_rx_list lock [v2] X-Git-Tag: v3.4-rc1~6^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20dc3811a2adfac65d5974e3b022a85fdbb9e205;p=pandora-kernel.git [SCSI] fcoe: reduce contention for fcoe_rx_list lock [v2] There is potentially lots of contention for the rx_list_lock. On a cpu that is receiving lots of fcoe traffic, the softirq context has to add and release the lock for every frame it receives, as does the receiving per-cpu thread. We can reduce this contention somewhat by altering the per-cpu threads loop such that when traffic is detected on the fcoe_rx_list, we splice it to a temporary list. In this way, we can process multiple skbs while only having to acquire and release the fcoe_rx_list lock once. [ Braces around single statement while loop removed by Robert Love to satisfy checkpath.pl. ] Signed-off-by: Neil Horman Acked-by: Vasu Dev Signed-off-by: Robert Love Signed-off-by: James Bottomley --- Reading git-diff-tree failed