summaryrefslogtreecommitdiff
path: root/drivers/scsi/NCR5380.c
diff options
context:
space:
mode:
authorMatthew R. Ochs <mrochs@linux.vnet.ibm.com>2017-10-26 00:36:29 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2017-10-31 19:28:04 +0300
commitd84c198f43c50c6c0bd57571acbf0f000165bd56 (patch)
tree3dee94bd38d2eda955ee889eef5cea70868754b3 /drivers/scsi/NCR5380.c
parent0d4191305e69e42b3f7f11bbcf077d1d42929f94 (diff)
downloadlinux-d84c198f43c50c6c0bd57571acbf0f000165bd56.tar.xz
scsi: cxlflash: Derive pid through accessors
The cxlflash driver tracks process IDs alongside contexts to validate context ownership. Currently, the process IDs are derived by directly accessing values from the 'current' task pointer. While this method of access is fine for the current process, it is incorrect when the parent process ID is needed as the access requires serialization. To address the incorrect issue and provide a consistent means of deriving the process ID within the cxlflash driver, use the task accessors defined linux/sched.h. 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>
Diffstat (limited to 'drivers/scsi/NCR5380.c')
0 files changed, 0 insertions, 0 deletions