+17
−0
Loading
During an ns reservation update, each poll group must update their state and report complete. Poll groups can report a non-zero status value which is passed to _nvmf_ns_reservation_update_done() but this variable was ignored and the completion would be SPDK_NVME_SC_SUCCESS. Set the error in the request completion. This lets the user know the reservation command failed. Add unit test to exercise the error handling. Change-Id: Ie716e3e310c1ae3350fb0155c8b02885ccd4fa4d Signed-off-by:Joel Cunningham <joel.cunningham@oracle.com> Signed-off-by:
Evan Webster <evan.webster@oracle.com> Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/26594 Reviewed-by:
Changpeng Liu <changpeliu@tencent.com> Reviewed-by:
Jim Harris <jim.harris@nvidia.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK Automated Test System <spdkbot@gmail.com>