]> 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:23:57 +0000 (20:23 +0200)
commitd5d511794336f8e7ee3ea1822c3a45462079c213
tree2cb7d76a5aea765a3f25ab9b2dac96fe78c3871d
parent3ed31c39a33664d876ef558a90779f9eaacf6c86
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