sock: update sock_map_release comment

Signed-off-by: Richael Zhuang <richael.zhuang@arm.com>
Change-Id: Icfeb9254f386fb5da6a5bde88b164bd0933f8889
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6070
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ziye Yang <ziye.yang@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Community-CI: Mellanox Build Bot
This commit is contained in:
Richael Zhuang 2021-01-25 17:41:20 +08:00 committed by Tomasz Zawadzki
parent 738cdf143f
commit 568915b6e4

View File

@ -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)