numam-spdk/lib/nbd
Wu, Mengjin e5c3791c4e lib/nbd: Process NBD_CMD_DISC according to the NBD protocol
After this patch, nbd will no longer receive any requests if
NBD_CMD_DISC is received. But it will handle the  requests
already received.

Previously we called spdk_bdev_abort() for NBD_CMD_DISC and
it will reply to the rest requests in the channel of this bdev.

But there should be no reply to NBD_CMD_DISC. Hence we silently
discards requests after NBD_CMD_DISC.

Signed-off-by: MengjinWu <mengjin.wu@intel.com>
Change-Id: I551dea1887cb2d108ed5e0d621309f62cfaabbb9
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8038
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Xiaodong Liu <xiaodong.liu@intel.com>
2021-07-16 07:13:19 +00:00
..
Makefile so_ver: increase all major versions 2021-02-05 14:43:47 +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 lib/nbd: Process NBD_CMD_DISC according to the NBD protocol 2021-07-16 07:13:19 +00:00
spdk_nbd.map lib/nbd: add a map file. 2020-05-11 12:29:07 +00:00