Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
Add in_flight handle to active sessions (#2001)
Browse files Browse the repository at this point in the history
* 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
jgrund authored Jun 23, 2020
1 parent 1c982cb commit 3be5bca
Show file tree
Hide file tree
Showing 6 changed files with 309 additions and 139 deletions.
Loading

0 comments on commit 3be5bca

Please sign in to comment.