From: Webb Scales Date: Thu, 23 Apr 2015 14:34:27 +0000 (-0500) Subject: hpsa: performance tweak for hpsa_scatter_gather() X-Git-Tag: omap-for-v4.3/legacy-v2-signed~180^2~66 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3a7ba7c942ccac8340a93b2bac2254480b1615f;p=pandora-kernel.git 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 Reviewed-by: Kevin Barnett Reviewed-by: Tomas Henzl Reviewed-by: Hannes Reinecke Signed-off-by: Webb Scales Signed-off-by: Don Brace Reviewed-by: Christoph Hellwig Signed-off-by: James Bottomley --- Reading git-diff-tree failed