]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds/quiesce: prevent an overflow of the wait duration 56542/head
authorLeonid Usov <leonid.usov@ibm.com>
Thu, 28 Mar 2024 05:32:26 +0000 (01:32 -0400)
committerLeonid Usov <leonid.usov@ibm.com>
Tue, 2 Apr 2024 22:54:48 +0000 (18:54 -0400)
commit508e870ee383265b8489e18a4c73854616a4110a
treec1dbce547cce9d30b4060d46cd55a8997836b776
parentf6edcef6efe209e8947887752bd2b833d0ca13b7
mds/quiesce: prevent an overflow of the wait duration

QuiesceTimeInterval::max() may overflow inside of a call to
std::condition_variable::wait_for and result in a busy-loop,
making the call to timeout immediately

The solution is to cap the wait duration to a value which can
certainly fit in whichever clock std library is using internally.

Fixes: https://tracker.ceph.com/issues/65276
Signed-off-by: Leonid Usov <leonid.usov@ibm.com>
src/mds/QuiesceDbManager.cc