]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: cxlflash: Cleanup queuecommand()
authorMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
Tue, 29 Nov 2016 00:43:01 +0000 (18:43 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 1 Dec 2016 00:53:02 +0000 (19:53 -0500)
commit6c2398aa7294431a7e7918f5f532591d3b797fa4
tree0d1319b57345cabcb86b221cda40897d03b6e6f2
parent7f46b0b849ab95509527047ff9e20e3639597dc7
scsi: cxlflash: Cleanup queuecommand()

The queuecommand routine is disorganized where it populates the
private command and also contains some logic/statements that are
not needed given that cxlflash devices do not (and likely never
will) support scatter-gather.

Restructure the code to remove the unnecessary logic and create an
organized flow:

handle state -> DMA map -> populate command -> send command

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