Thread (13 messages) flat view 13 messages, 2 authors, 2016-08-19

Re: [PATCH 3/6] cxlflash: Add kref to context

From: Manoj Kumar <hidden>
Date: 2016-08-18 18:38:41
Also in: linux-scsi

Acked-by: Manoj N. Kumar <redacted>

On 8/9/2016 6:39 PM, Matthew R. Ochs wrote:
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 [off-list ref]
Signed-off-by: Matthew R. Ochs <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help