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>
This commit is contained in:

committed by
Martin K. Petersen

parent
b070545db1
commit
af2047ec00
@@ -98,6 +98,7 @@ struct ctx_info {
|
||||
|
||||
struct cxl_ioctl_start_work work;
|
||||
u64 ctxid;
|
||||
u64 irqs; /* Number of interrupts requested for context */
|
||||
pid_t pid;
|
||||
bool initialized;
|
||||
bool unavail;
|
||||
|
Reference in New Issue
Block a user