Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvme: introduce helper function to get ctrl state
[ Upstream commit 5c687c2 ] The controller state is typically written by another CPU, so reading it should ensure no optimizations are taken. This is a repeated pattern in the driver, so start with adding a convenience function that returns the controller state with READ_ONCE(). Reviewed-by: Sagi Grimberg <[email protected]> Signed-off-by: Keith Busch <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information