summaryrefslogtreecommitdiff
path: root/drivers/bus/omap_l3_smx.c
diff options
context:
space:
mode:
authorMike Christie <michael.christie@oracle.com>2020-11-01 12:59:27 -0600
committerMartin K. Petersen <martin.petersen@oracle.com>2020-11-04 22:39:37 -0500
commita2b5d6f975a499bd50919a409c6a7c4cbf9d8a58 (patch)
treedb61b51f246195b2a85d59e6e3de4d056d5c1925 /drivers/bus/omap_l3_smx.c
parent00c00807a11002f56ca5d87463ac892c794f122f (diff)
scsi: target: Fix LUN ref count handling
Fix two bugs in the LUN refcounting: 1. For the TCM_WRITE_PROTECTED case we were returning an error after taking a ref to the LUN, but never dropping it (caller just send status and drops cmd ref). 2. We still need to do a percpu_ref_tryget_live for the virt LUN 0 like we do for other LUNs, because the TPG code does the refcount/wait process like it does with other LUNs. Link: https://lore.kernel.org/r/1604257174-4524-2-git-send-email-michael.christie@oracle.com Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by: Mike Christie <michael.christie@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/bus/omap_l3_smx.c')
0 files changed, 0 insertions, 0 deletions