]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
nvme: have nvme_wait_freeze_timeout return if it timed out
authorSagi Grimberg <sagi@grimberg.me>
Thu, 30 Jul 2020 20:24:45 +0000 (13:24 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 9 Nov 2020 13:46:42 +0000 (14:46 +0100)
commit0f8ea1de7440f5a330d54c59575f3d4d9fbc7f74
tree0fb181ddc1fa23243110eda7fcc66f571e1c37b0
parent6bdc67697521dcb6ba3728c4b1eb39b57b31a321
nvme: have nvme_wait_freeze_timeout return if it timed out

BugLink: https://bugs.launchpad.net/bugs/1896824
[ Upstream commit 7cf0d7c0f3c3b0203aaf81c1bc884924d8fdb9bd ]

Users can detect if the wait has completed or not and take appropriate
actions based on this information (e.g. weather to continue
initialization or rather fail and schedule another initialization
attempt).

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: William Breathitt Gray <william.gray@canonical.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h