]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: Don't allow to reset a reconnecting controller
authorSagi Grimberg <sagi@grimberg.me>
Thu, 4 May 2017 10:33:12 +0000 (13:33 +0300)
committerChristoph Hellwig <hch@lst.de>
Thu, 15 Jun 2017 12:28:22 +0000 (14:28 +0200)
commita214a0483818b72776caf9b9950e9dfd703c81d4
treef8f66b66deda21e69fac561ce1dba26bcd13d5af
parent7234d4a1277428c7e5d81593f149a9f95f554977
nvme: Don't allow to reset a reconnecting controller

The reset operation is guaranteed to fail for all scenarios
but the esoteric case where in the last reconnect attempt
concurrent with the reset we happen to successfully reconnect.

We just deny initiating a reset if we are reconnecting.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c