[SCSI] megaraid: simplify internal command handling
authorChristoph Hellwig <hch@infradead.org>
Thu, 20 Feb 2014 22:20:59 +0000 (14:20 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 27 Mar 2014 15:26:31 +0000 (08:26 -0700)
commit0f2bb84d2a68448c29d46f9f77a78bb4ed0218db
tree567416ea674f58eb93e0dc2195cdf6b2483c2ac7
parentc38c007af04b928b5285da8cc44fbe2f4810e24e
[SCSI] megaraid: simplify internal command handling

We don't use the passed in scsi command for anything, so just add a adapter-
wide internal status to go along with the internal scb that is used unter
int_mtx to pass back the return value and get rid of all the complexities
and abuse of the scsi_cmnd structure.

This gets rid of the only user of scsi_allocate_command/scsi_free_command,
which can now be removed.

[jejb: checkpatch fixes]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Adam Radford <aradford@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/megaraid.c
drivers/scsi/megaraid.h
drivers/scsi/scsi.c
include/scsi/scsi_cmnd.h