megaraid: simplify internal command handling
authorChristoph Hellwig <hch@infradead.org>
Thu, 20 Feb 2014 22:20:59 +0000 (14:20 -0800)
committerJens Axboe <axboe@fb.com>
Thu, 2 Apr 2015 18:12:26 +0000 (12:12 -0600)
commit5a7d5dd36384e900ef675c7be085ef7a212fce2a
tree84fa75c7a8bb2775b1ae278d0dc0979f5f61e43e
parent3c8855bdc34c709f5092732266612cf4cf8456cf
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