diff options
| author | Matthew R. Ochs <[email protected]> | 2016-09-02 15:40:41 -0500 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2016-09-14 12:47:42 -0400 |
| commit | c4a11827b760ef8dcda26b5731d072b1d8fb7c81 (patch) | |
| tree | 6bda9df01ddca909ce2dd4f49e46e69c579062d2 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | f80132613d576e7e705344d0c33f3b5e65d9e16a (diff) | |
scsi: cxlflash: Fix context reference tracking on detach
Commit 888baf069f49 ("scsi: cxlflash: Add kref to context") introduced a
kref to the context. In particular, the detach routine was updated to
use the kref services for managing the removal and destruction of a
context.
As part of this change, the tracking mechanism internal to the detach
handler was refactored. This introduced a bug that can cause the
tracking state to be lost. This can lead to a situation where exclusive
access to a context is prematurely [and unknowingly] relinquished for
the executing thread.
To remedy, only update the tracking state when the kref operation
indicates the context was removed.
Fixes: 888baf069f49 ("scsi: cxlflash: Add kref to context")
Signed-off-by: Matthew R. Ochs <[email protected]>
Acked-by: Uma Krishnan <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions