]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
fabrics: return error when discovery retry exhausted
authorMinwoo Im <minwoo.im.dev@gmail.com>
Tue, 18 Jun 2019 12:53:38 +0000 (21:53 +0900)
committerMinwoo Im <minwoo.im.dev@gmail.com>
Thu, 20 Jun 2019 14:23:17 +0000 (23:23 +0900)
commitabce481d378fa86c1f794850b0c9de53a066b01e
tree88a9f08f2fc9eb03826dcf707b1ebcdccf054a1d
parent05d54565c23777b3f09bdfd94ef8e87d899fd9e4
fabrics: return error when discovery retry exhausted

If the discovery page is not updated to the latest one over the 10
times, it's currently returning DISC_OK if the numrec has no problem.
If so, the caller might think that the discovery has been successfully
done without any errors even there is.

This patch makes it return an error -EAGAIN if retry(10 times) has been
exhausted.

Cc: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <chaianya.kulkarni@wdc.com>
fabrics.c