e5c3791c4e
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> |
||
---|---|---|
.. | ||
Makefile | ||
nbd_internal.h | ||
nbd_rpc.c | ||
nbd.c | ||
spdk_nbd.map |