]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit071613a74ddc2fc5178393396965243f2c921d13
treea90da59e4192e8473c7d0a7b06efe0b8ef6c5f1c
parentfea266b37bac69c44e9e2313ec6adb039cc047ea
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