scsi: cxlflash: Allocate memory instead of using command pool for AFU sync
authorMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
Tue, 29 Nov 2016 00:42:11 +0000 (18:42 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 1 Dec 2016 00:53:01 +0000 (19:53 -0500)
commit350bb478f57387df1e0b830fc64be2d1c3d55b6b
treed237a352fd83169c5212711b14e054f44cb2cd2d
parente7ab2d401dbf633eaafe5bd1f39e84492848668f
scsi: cxlflash: Allocate memory instead of using command pool for AFU sync

As staging for the removal of the AFU command pool, remove the reliance
upon the pool for the internal AFU sync command. Instead of obtaining an
AFU command from the pool, dynamically allocate memory with the appropriate
alignment requirements. Since the AFU sync service is only executed from
the process environment, blocking is acceptable.

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/main.c