]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hpsa: factor out hpsa_init_cmd function
authorStephen Cameron <stephenmcameron@gmail.com>
Fri, 6 Nov 2015 13:47:40 +0000 (05:47 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 19:46:07 +0000 (11:46 -0800)
commit0265bc093bcb846083c3b8d1b4ef712f0a66268b
tree5cd58b804cb9eb717d189ace7c588b210fcb238a
parent118fa0759c15cd5adcfda988f86040b953b8d1c9
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 <scott.teel@pmcs.com>
Reviewed-by: Kevin Barnett <kevin.barnett@pmcs.com>
Signed-off-by: Don Brace <don.brace@pmcs.com>
Orabug: 22075051
Acked-by: Chuck Anderson <chuck.anderson@oracle.com>
drivers/scsi/hpsa.c
drivers/scsi/hpsa_cmd.h