diff options
author | Matthew R. Ochs <mrochs@linux.vnet.ibm.com> | 2016-08-09 18:39:42 -0500 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-08-18 22:41:36 -0400 |
commit | 888baf069f49529f33c0b1dfb0fc4811dc0ca1d2 (patch) | |
tree | 6adddf35f84cb2a08756eeef7a0b8d6fb0ab56ed /include/pcmcia/device_id.h | |
parent | 44ef38f9a2af8644c24ace6cbe1132dc70174c39 (diff) |
scsi: cxlflash: Add kref to context
Currently, context user references are tracked via the list of LUNs that
have attached to the context. While convenient, this is not intuitive
without a deep study of the code and is inconsistent with the existing
reference tracking patterns within the kernel. This design choice can
lead to future bug injection.
To improve code comprehension and better protect against future bugs,
add explicit reference counting to contexts and migrate the context
removal code to the kref release handler.
Inspired-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Acked-by: Manoj N. Kumar <manoj@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/pcmcia/device_id.h')
0 files changed, 0 insertions, 0 deletions