forked from axboe/liburing
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test/poll-race-mshot: fix missing init of buffer ring
It's critical to initialize the ring before use, obviously... As is also documented. Outside of that, intialize the buffer written. This doesn't really matter, but it's a nice thing to do. Use the appropriate helpers to add buffers to the ring, rather than maintain a private mask. Finally, free the ring and buffers when done. This usually doesn't matter in test cases, but we are calling these thousands of times. Better to free the memory than bloat the usage. Signed-off-by: Jens Axboe <axboe@kernel.dk>
- Loading branch information
Showing
1 changed file
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters