numam-spdk/lib/nbd
Ziye Yang 590b6e7507 nbd: Use async manner to stop nbd device.
Purpose: In order to free all the allocated resources.

Our current code uses sync behaviour, and it will not wait for all
the resources are freed if there is active I/Os, and thus we will
not free some resources, e.g., some fds will not be closed.

Signed-off-by: Ziye Yang <ziye.yang@intel.com>
Change-Id: Iaf9a606da2049ffd0096860c46d89d094038a5ff
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5601
Community-CI: Broadcom CI
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Sun Zhenyuan <sunzhenyuan@baidu.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: <dongx.yi@intel.com>
2020-12-28 14:05:15 +00:00
..
Makefile nbd: Use async manner to stop nbd device. 2020-12-28 14:05:15 +00:00
nbd_internal.h lib/nbd: remove spdk prefix from internal functions. 2020-05-11 12:29:07 +00:00
nbd_rpc.c nbd/nbd_rpc: Fix memory leak of an error path. 2020-12-21 17:49:16 +00:00
nbd.c nbd: Use async manner to stop nbd device. 2020-12-28 14:05:15 +00:00
spdk_nbd.map lib/nbd: add a map file. 2020-05-11 12:29:07 +00:00