commit | 4e50d9ebaeaa3c6761d2b513ef7039510c8cf213 | [log] [tgz] |
---|---|---|
author | Charles Machalow <charles.machalow@intel.com> | Thu May 10 16:01:38 2018 -0700 |
committer | Keith Busch <keith.busch@intel.com> | Fri May 11 10:51:45 2018 -0600 |
tree | 34f53556f597922875004c500b741de5a10400c1 | |
parent | 12d9f07022dcde261ad16e9a11f45096dc68b03c [diff] |
nvme: Fix sync controller reset return If a controller reset is requested while the device has no namespaces, we were incorrectly returning ENETRESET. This patch adds the check for ADMIN_ONLY controller state to indicate a successful reset. Fixes: 8000d1fdb0 ("nvme-rdma: fix sysfs invoked reset_ctrl error flow ") Cc: <stable@vger.kernel.org> Signed-off-by: Charles Machalow <charles.machalow@intel.com> [changelog] Signed-off-by: Keith Busch <keith.busch@intel.com>