Spdk/lib/sock
Ben Walker 21c06bac09 sock: Release sock_map entries before shutdown
There are a small, bounded set of placement_ids that the socket layer
will ever encounter, and they remain valid for the lifetime of the
program. The association between a poll group and a placement_id is now
correctly broken when the reference count drops to 0 (in response to
sock_map_release calls), so do not free the entry when the poll group is
destroyed so that it may be reused again.

Change-Id: Iad90e2da7d0860fa8c5cff24f9699bef30cd7bc2
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7210
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2021-04-16 05:04:29 +00:00
..
Makefile so_ver: increase all major versions 2021-02-05 14:43:47 +00:00
sock_rpc.c sock: introduce SO_INCOMING_CPU to get placement_id 2021-03-09 08:53:52 +00:00
sock.c sock: Release sock_map entries before shutdown 2021-04-16 05:04:29 +00:00
spdk_sock.map sock: Add new API to set default sock implementation 2020-10-05 08:22:53 +00:00