]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd: krbd: return -ETIMEDOUT in polling 27588/head
authorDongsheng Yang <dongsheng.yang@easystack.cn>
Mon, 18 Mar 2019 03:04:52 +0000 (23:04 -0400)
committerPrashant D <pdhange@redhat.com>
Mon, 15 Apr 2019 05:08:58 +0000 (01:08 -0400)
commit76077e59ec238bb7816af2d81e96189cdb7e562e
tree494a210f2b60e1ab3fb76a0c67e4fd17fee4f57d
parent8bbb76efa480bcada12d524995527e4b3bbee288
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