scsi: cxlflash: Use cmd_size for private commands
authorMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
Tue, 29 Nov 2016 00:42:19 +0000 (18:42 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 1 Dec 2016 00:53:02 +0000 (19:53 -0500)
commit5fbb96c8f1ba89fb220efb7e4eeed7cb5112becd
tree48e18c1f6f91dbba8c49968648e35a5c2260849f
parent350bb478f57387df1e0b830fc64be2d1c3d55b6b
scsi: cxlflash: Use cmd_size for private commands

Instead of using a private pool of AFU commands, use cmd_size to prime
the private pool of SCSI commands such that they are allocated with a
size large enough to contain an aligned AFU command. Use scsi_cmd_priv()
to derive the aligned/zeroed private command on queuecommand and TMF
paths. Remove cmd_checkout() as it is no longer required. The remaining
AFU private command infrastructure will be removed in a cleanup commit.

Signed-off-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Acked-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/cxlflash/common.h
drivers/scsi/cxlflash/main.c