]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: cxlflash: Derive pid through accessors
authorMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
Wed, 25 Oct 2017 21:36:29 +0000 (16:36 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 31 Oct 2017 16:28:04 +0000 (12:28 -0400)
commita3a1bea81ac39bd80d7f48f46e1dd1d0dbe7599b
tree3dee94bd38d2eda955ee889eef5cea70868754b3
parente412ae2ad900c69b0c5f75ec5229b768a39810bc
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>
drivers/scsi/cxlflash/superpipe.c