]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hpsa: performance tweak for hpsa_scatter_gather()
authorWebb Scales <webbnh@hp.com>
Fri, 6 Nov 2015 13:47:43 +0000 (05:47 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 19:48:36 +0000 (11:48 -0800)
commite123f5dd5f771d4b0834a13289fcc8cca107e649
treed720e7d58c808383cf12b39e944b3ff1491a77f5
parenteefd488e3f1f5376f21882e601a816d12d24d1d8
hpsa: performance tweak for hpsa_scatter_gather()

Divide the loop in hpsa_scatter_gather() into two, one for the initial SG list
and a second one for the chained list, if any.  This allows the conditional
check which resets the indicies for the chained list to be performed outside
the loop instead of being done on every iteration inside the loop.

Reviewed-by: Scott Teel <scott.teel@pmcs.com>
Reviewed-by: Kevin Barnett <kevin.barnett@pmcs.com>
Signed-off-by: Webb Scales <webbnh@hp.com>
Signed-off-by: Don Brace <don.brace@pmcs.com>
Orabug: 22075051
Acked-by: Chuck Anderson <chuck.anderson@oracle.com>
drivers/scsi/hpsa.c