summaryrefslogtreecommitdiff
path: root/drivers/scsi/ipr.c
diff options
context:
space:
mode:
authorNeil Horman <nhorman@tuxdriver.com>2012-03-10 02:50:24 +0400
committerJames Bottomley <JBottomley@Parallels.com>2012-03-28 12:31:44 +0400
commit20dc3811a2adfac65d5974e3b022a85fdbb9e205 (patch)
treecfabd1f2ebe09711cb45f550d754cca7e125bd89 /drivers/scsi/ipr.c
parentdd060e74fb4c2513420d8af7371cda2f3eea4fa9 (diff)
downloadlinux-20dc3811a2adfac65d5974e3b022a85fdbb9e205.tar.xz
[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 <nhorman@tuxdriver.com> Acked-by: Vasu Dev <vasu.dev@intel.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/ipr.c')
0 files changed, 0 insertions, 0 deletions