Commit 801acf74 authored by Nilay Shroff's avatar Nilay Shroff Committed by Greg Kroah-Hartman
Browse files

nvme: use helper nvme_ctrl_state in nvme_keep_alive_finish function



[ Upstream commit 599d9f3a ]

We no more need acquiring ctrl->lock before accessing the
NVMe controller state and instead we can now use the helper
nvme_ctrl_state. So replace the use of ctrl->lock from
nvme_keep_alive_finish function with nvme_ctrl_state call.

Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarNilay Shroff <nilay@linux.ibm.com>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
Stable-dep-of: 84488282 ("Revert "nvme: make keep-alive synchronous operation"")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 2c276bef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment