diff options
author | Christoph Hellwig <hch@lst.de> | 2022-11-16 08:54:26 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-12-06 14:36:53 +0100 |
commit | e6d275de2e4aaebdc97aa022c031a0dcc475efa4 (patch) | |
tree | b19b4415f222759ee420f562821eb33ab3e7e034 /kernel/user.c | |
parent | c76b8308e4c9148e44e0c7e086ab6d8b4bb10162 (diff) |
nvme: use nvme_wait_ready in nvme_shutdown_ctrl
Refactor the code to wait for CSTS state changes so that it can be reused
by nvme_shutdown_ctrl. This reduces the delay between each iteration
that checks CSTS from 100ms in the shutdown code to the 1 to 2ms range
done during enable, matching the changes from commit 3e98c2443f5c that
were only applied to the enable/disable path.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Pankaj Raghav <p.raghav@samsung.com>
Diffstat (limited to 'kernel/user.c')
0 files changed, 0 insertions, 0 deletions