]> www.infradead.org Git - users/hch/misc.git/commit
nvme: use helper nvme_ctrl_state in nvme_keep_alive_finish function
authorNilay Shroff <nilay@linux.ibm.com>
Wed, 16 Oct 2024 03:03:16 +0000 (08:33 +0530)
committerKeith Busch <kbusch@kernel.org>
Thu, 17 Oct 2024 18:07:37 +0000 (11:07 -0700)
commit599d9f3a10eec69ef28a90161763e4bd7c9c02bf
treec36e34d27d5419c7819b931c44a1f6eaaef81d12
parentd06923670b5a5f609603d4a9fee4dec02d38de9c
nvme: use helper nvme_ctrl_state in nvme_keep_alive_finish function

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: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nilay Shroff <nilay@linux.ibm.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/core.c