]> git.karo-electronics.de Git - linux-beck.git/commit
hpsa: performance tweak for hpsa_scatter_gather()
authorWebb Scales <webbnh@hp.com>
Thu, 23 Apr 2015 14:34:27 +0000 (09:34 -0500)
committerJames Bottomley <JBottomley@Odin.com>
Sun, 31 May 2015 18:38:41 +0000 (11:38 -0700)
commitb3a7ba7c942ccac8340a93b2bac2254480b1615f
tree23a581316380d1a7610125a943e1e420f753fad1
parentb69324ff93127b1a2042612ff2aa95b42af873a0
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>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Reviewed-by: Hannes Reinecke <hare@Suse.de>
Signed-off-by: Webb Scales <webbnh@hp.com>
Signed-off-by: Don Brace <don.brace@pmcs.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/hpsa.c