8f5e4bfe2e
A very heinous error case is when a delete_io_sq or delete_io_cq command fails when freeing a PCIe IO qpair. In that case we return an error to the caller, and the resources are not freed. Instead of trying to 'fix' this error case, let's just tell the user that if freeing an IO qpair fails, the user should reset the controller and try again. Resetting the controller will do one of two things: 1) The subsequent create_cq/create_sq will succeed, at which point, trying to delete again should work fine. (If it doesn't, it indicates some kind of horrendous SSD.) 2) The subsequent create_cq/create_sq will fail, at which point the entire ctrlr would fail and need to be detached. This could result in some leaked memory, but seems unavoidable. Closes issue #716. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I218564080abec4d6b5ac0b861869ebfc7d99f2c3 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6918 Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: <dongx.yi@intel.com> |
||
---|---|---|
.. | ||
linux | ||
spdk | ||
spdk_internal | ||
Makefile |