nvmf: Fix bug when subsystem failed to pause
We can send a message to repeat subsystem pause and free a context that will be used later Signed-off-by: Alexey Marchuk <alexeymar@mellanox.com> Change-Id: Ia5e8b0ff43f5e38bd8e659a8a64d42926e1d3c6e Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6661 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Ziye Yang <ziye.yang@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: <dongx.yi@intel.com>
This commit is contained in:
parent
d22233ac59
commit
c4a1b3431a
@ -1306,9 +1306,10 @@ nvmf_ns_resize(void *event_ctx)
|
||||
if (rc == -EBUSY) {
|
||||
/* Try again, this is not a permanent situation. */
|
||||
spdk_thread_send_msg(spdk_get_thread(), nvmf_ns_change_msg, ns_ctx);
|
||||
} else {
|
||||
SPDK_ERRLOG("Unable to pause subsystem to process namespace resize!\n");
|
||||
free(ns_ctx);
|
||||
}
|
||||
SPDK_ERRLOG("Unable to pause subsystem to process namespace resize!\n");
|
||||
free(ns_ctx);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user