aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorMike Christie <[email protected]>2022-04-07 19:13:07 -0500
committerMartin K. Petersen <[email protected]>2022-04-11 22:09:34 -0400
commit3c6ae371b8a1ffba1fc415989fd581ebf841ed0a (patch)
tree8092db4e93248fcc76d24168ed421f8da87e957d /lib/mpi/mpiutil.c
parentcbd2283aaf47fef4ded4b29124b1ef3beb515f3a (diff)
scsi: iscsi: Release endpoint ID when its freed
We can't release the endpoint ID until all references to the endpoint have been dropped or it could be allocated while in use. This has us use an idr instead of looping over all conns to find a free ID and then free the ID when all references have been dropped instead of when the device is only deleted. Link: https://lore.kernel.org/r/[email protected] Tested-by: Manish Rangankar <[email protected]> Reviewed-by: Lee Duncan <[email protected]> Reviewed-by: Chris Leech <[email protected]> Reviewed-by: Wu Bo <[email protected]> Signed-off-by: Mike Christie <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions