This repository has been archived by the owner on Jul 25, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add in_flight handle to active sessions (#2001)
* Add in_flight handle to active sessions
If a daemon plugin executes for longer than a poll interval it will continue running in the background. This can cause buffering of resources in the case of a misbehaving call.
We've seen this when `lnetctl export` hangs due to large numbers of peers.
We can add a in_flight handle to active sessions.
If we hit the deadline while a plugin is in a poll, we can drop the pending future and poll the plugin again. This will ensure we don't buffer misbehaving resources when a deadline elapses.
Fixes #1998.
Signed-off-by: Joe Grund <jgrund@whamcloud.io>
* fmt fixups
Signed-off-by: Joe Grund <jgrund@whamcloud.io>
- Loading branch information