]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd: krbd: return -ETIMEDOUT in polling 27539/head
authorDongsheng Yang <dongsheng.yang@easystack.cn>
Mon, 18 Mar 2019 03:04:52 +0000 (23:04 -0400)
committerPrashant D <pdhange@redhat.com>
Thu, 11 Apr 2019 23:55:04 +0000 (19:55 -0400)
commitcebbfded57ac64a12b2bc18564be526a6f7c1e5b
tree8c390965ab17904fddc4f82576e027d6ea3a9d55
parenta5f853800c23317121878b4c718cbde419b92aea
rbd: krbd: return -ETIMEDOUT in polling

We don't want to wait on uevent forever, but the return value
of polling in timeout is 0 rather than a negative value.

Fixes: http://tracker.ceph.com/issues/38792
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
(cherry picked from commit ab833b823bf7dc5750f281a81f31ed8f708df73d)
src/krbd.cc