lib/nbd: Add the abort support
We need add the abort support if the nbd state is NBD_DISK_STATE_SOFTDISC. Change-Id: I137b71d8f68005b78b9065a16056dbab71d33acd Signed-off-by: Ziye Yang <ziye.yang@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6038 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: <dongx.yi@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Community-CI: Mellanox Build Bot
This commit is contained in:
parent
fda0424e71
commit
39387c4757
@ -541,8 +541,8 @@ nbd_submit_bdev_io(struct spdk_nbd_disk *nbd, struct nbd_io *io)
|
||||
break;
|
||||
#endif
|
||||
case NBD_CMD_DISC:
|
||||
nbd_put_io(nbd, io);
|
||||
nbd->state = NBD_DISK_STATE_SOFTDISC;
|
||||
rc = spdk_bdev_abort(desc, ch, io, nbd_io_done, io);
|
||||
|
||||
/* when there begins to have executed_io to send, enable socket writable notice */
|
||||
if (nbd->intr && TAILQ_EMPTY(&nbd->executed_io_list)) {
|
||||
|
Loading…
Reference in New Issue
Block a user