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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Sep 2020 11:55:35 +0000 (13:55 +0200)
commitc244c493f079334874f9bac97a9b06cb86d4e4f1
tree936cb6f7a987f4342bd94d8f6af1562ac59c9e8b
parent6c63e56986d3bfd281bec617c5ad0149a0f50fd7
nvme: have nvme_wait_freeze_timeout return if it timed out

[ 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>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h