Commit 568915b6 authored by Richael Zhuang's avatar Richael Zhuang Committed by Tomasz Zawadzki
Browse files

sock: update sock_map_release comment



Signed-off-by: default avatarRichael Zhuang <richael.zhuang@arm.com>
Change-Id: Icfeb9254f386fb5da6a5bde88b164bd0933f8889
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6070


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarZiye Yang <ziye.yang@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Community-CI: Mellanox Build Bot
parent 738cdf14
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -93,7 +93,10 @@ sock_map_insert(int placement_id, struct spdk_sock_group *group)
}

/* Release a reference to the group for a given placement_id.
 * If the reference count is 0, remove the group.
 * We use lazy free method. If a placement_id with a sock is associated with the group,
 * it will possibly be associated again by another sock with the same placement_id. And
 * there will no memory leak, because if a polling group is destroyed, the
 * sock_remove_sock_group_from_map_table will be called to guarantee the mapping correctness.
 */
static void
sock_map_release(int placement_id)