scsi: cxlflash: Explicitly cache number of interrupts per context
authorMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
Wed, 3 Jan 2018 22:54:37 +0000 (16:54 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 11 Jan 2018 04:24:56 +0000 (23:24 -0500)
commitaf2047ec00bfd61b46b653e856dcf1e0bc567619
treea90da59e4192e8473c7d0a7b06efe0b8ef6c5f1c
parentb070545db112e4c815fbfce25449495eff20c170
scsi: cxlflash: Explicitly cache number of interrupts per context

The number of interrupts a user requests during a context attach is
presently stored within the CXL work ioctl structure that is nested
alongside the per context metadata. Keeping this data in a structure
that is tied to a particular hardware implementation (CXL) will only
complicate matters when supporting newer accelerator transports.

Instead of relying upon the number of interrupts being cached within
a CXL-specific structure, explicitly cache the value within the context
information structure.

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