]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: limit the number of ENOENT retries in RefreshRequest
authorIlya Dryomov <idryomov@gmail.com>
Sun, 4 Sep 2022 10:40:36 +0000 (12:40 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 6 Sep 2022 18:22:11 +0000 (20:22 +0200)
commitf61611abb712e1990394bab38b2928fdbd14c74d
tree06064da9673790841a96de41388e2f7b297dda46
parent0f5f3a297091ff81ed607a1c27ce16e5e5cbdfe0
librbd: limit the number of ENOENT retries in RefreshRequest

If the image header is corrupt, ENOENT error may be persistent.  Avoid
an infinite loop in that case.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 8570194b133462db6b7d4ab108383db0967b1cb9)
src/librbd/image/RefreshRequest.cc
src/librbd/image/RefreshRequest.h
src/test/librbd/image/test_mock_RefreshRequest.cc