From: Stephen Cameron Date: Thu, 23 Apr 2015 14:32:32 +0000 (-0500) Subject: hpsa: factor out hpsa_init_cmd function X-Git-Tag: omap-for-v4.3/legacy-v2-signed~180^2~87 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=360c73bdde4537397f70b17cadd8139ff1f75ab9;p=pandora-kernel.git hpsa: factor out hpsa_init_cmd function Factor out hpsa_cmd_init from cmd_alloc(). We also need this for resubmitting commands down the default RAID path when they have returned from the ioaccel paths with errors. In particular, reinitialize the cmd_type and busaddr fields as these will not be correct for submitting down the RAID stack path after ioaccel command completion. This saves time when submitting commands. Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Reviewed-by: Tomas Henzl Reviewed-by: Hannes Reinecke Signed-off-by: Don Brace Reviewed-by: Christoph Hellwig Signed-off-by: James Bottomley --- Reading git-diff-tree failed