commit | f252072d1fe72b4395bf387bb7cd6e000e70182c | [log] [tgz] |
---|---|---|
author | Keith Busch <kbusch@kernel.org> | Wed Sep 04 10:06:11 2019 -0600 |
committer | Keith Busch <kbusch@kernel.org> | Fri Sep 06 16:41:16 2019 -0600 |
tree | d4864872c122834bb8d918af66b59f2a6e93bc0c | |
parent | bfd14008171c134bc8e2ac91cd5efe627b2f896b [diff] |
nvme: Wait for reset state when required Disabling the controller in paths that resets it in a different context needs to fence off other resets from occuring. Provide a method to block until we've successfully entered a reset state prior to disabling so that we can perform the controller disabling without fear that another reset will undo our teardown, or that our teardown won't conflict with an in-progress reset. Signed-off-by: Keith Busch <kbusch@kernel.org>