-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch synchronous thread to thread_local storage #3330
Conversation
Signed-off-by: Alan Jowett <[email protected]>
Need to investigate failures. |
Signed-off-by: Alan Jowett <[email protected]>
Isusue resolved, ready for review. |
Code itself looks good to me, but do we have existing tests which utilize ebpf api on multiple threads? |
Signed-off-by: Alan Jowett <[email protected]>
Added dedicates IOCTL stress test, FWIW. |
} | ||
} | ||
|
||
// Wait for 10 seconds |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment is out of date.
* Switch synchronous thread to thread_local storage Signed-off-by: Alan Jowett <[email protected]> * Add dedicated calls to cleanup device handles on thread attach/detach Signed-off-by: Alan Jowett <[email protected]> * Add dedicate test to stress device handling Signed-off-by: Alan Jowett <[email protected]> --------- Signed-off-by: Alan Jowett <[email protected]> Co-authored-by: Alan Jowett <[email protected]>
* Switch synchronous thread to thread_local storage Signed-off-by: Alan Jowett <[email protected]> * Add dedicated calls to cleanup device handles on thread attach/detach Signed-off-by: Alan Jowett <[email protected]> * Add dedicate test to stress device handling Signed-off-by: Alan Jowett <[email protected]> --------- Signed-off-by: Alan Jowett <[email protected]> Co-authored-by: Alan Jowett <[email protected]>
Description
IOCTLs sent via a file handle that is opened without the FILE_FLAG_OVERLAPPED flag are serialized in the file object. This will affect performance if multiple user mode threads are making concurrent IOCTL requests.
This change switches the synchronous handle to being per-thread, with the handle being closed on thread detach.
Testing
CI/CD
Documentation
No.
Installation
No.