From 45b567673814fcb7e5fa5cada1d44ebf092bc005 Mon Sep 17 00:00:00 2001 From: Changpeng Liu Date: Tue, 27 Apr 2021 21:16:03 +0800 Subject: [PATCH] nvmf/vfio-user: rename vfio_user_stop_ctrlr() to vfio_user_destroy_ctrlr() The original function will disconnect queue pairs first and then free controller memory finally, so rename it to vfio_user_destroy_ctrlr(). Change-Id: Idc235e4186bd4164be712fc9d4cda4991efc6248 Signed-off-by: Changpeng Liu Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7624 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto Reviewed-by: --- lib/nvmf/vfio_user.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nvmf/vfio_user.c b/lib/nvmf/vfio_user.c index 845b57db4..ac8ae9081 100644 --- a/lib/nvmf/vfio_user.c +++ b/lib/nvmf/vfio_user.c @@ -1932,7 +1932,7 @@ vfio_user_qpair_disconnect_cb(void *ctx) } static int -vfio_user_stop_ctrlr(struct nvmf_vfio_user_ctrlr *ctrlr) +vfio_user_destroy_ctrlr(struct nvmf_vfio_user_ctrlr *ctrlr) { uint32_t i; struct nvmf_vfio_user_qpair *qpair; @@ -1970,7 +1970,7 @@ vfio_user_poll_mmio(void *ctx) /* initiator shutdown or reset, waiting for another re-connect */ if (errno == ENOTCONN) { - vfio_user_stop_ctrlr(ctrlr); + vfio_user_destroy_ctrlr(ctrlr); return SPDK_POLLER_BUSY; }