summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorUma Krishnan <ukrishn@linux.vnet.ibm.com>2018-03-26 19:35:00 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2018-04-19 02:32:50 +0300
commitf81face7256339c584ee9baba3240ddac74a0293 (patch)
tree48e843b81cb84b32a72ea1b6ff617b396710ce6a /include
parentd91dd3a7d11a17a2e309a15e4765283212e30290 (diff)
downloadlinux-f81face7256339c584ee9baba3240ddac74a0293.tar.xz
scsi: cxlflash: Introduce OCXL context state machine
In order to protect the OCXL hardware contexts from getting clobbered, a simple state machine is added to indicate when a context is in open, close or start state. The expected states are validated throughout the code to prevent illegal operations on a context. A mutex is added to protect writes to the context state field. Signed-off-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com> Acked-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions