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)
committerSagi Grimberg <sagi@grimberg.me>
Fri, 28 Aug 2020 23:43:56 +0000 (16:43 -0700)
commit7cf0d7c0f3c3b0203aaf81c1bc884924d8fdb9bd
treec84239cc77c8d17ac9df0a81e180e6e49b985eac
parentd7144f5c4cf4de95fdc3422943cf51c06aeaf7a7
nvme: have nvme_wait_freeze_timeout return if it timed out

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