mirror of
https://github.com/ceph/ceph
synced 2025-03-06 08:20:12 +00:00
crimson/osd: document OperationThrottler's behavior towards op's blocker list.
Signed-off-by: Radosław Zarzyński <rzarzyns@redhat.com>
This commit is contained in:
parent
846ed08359
commit
2dc3770f7a
@ -183,6 +183,10 @@ class OperationThrottler : public BlockerT<OperationThrottler>,
|
||||
F &&f) {
|
||||
if (!max_in_progress) return f();
|
||||
auto fut = acquire_throttle(params);
|
||||
// At any given moment a particular op can be blocked by a given
|
||||
// OperationThrottler instance no more than once. This means the
|
||||
// same throtter won't be on the op's blockers list more than one
|
||||
// time.
|
||||
return op->with_blocking_future(std::move(fut))
|
||||
.then(std::forward<F>(f))
|
||||
.then([this](auto x) {
|
||||
|
Loading…
Reference in New Issue
Block a user