History

io_uring: provide means of removing buffers

We have IORING_OP_PROVIDE_BUFFERS, but the only way to remove buffers is to trigger IO on them. The usual case of shrinking a buffer pool would be to just not replenish the buffers when IO completes, and instead just free it. But it may be nice to have a way to manually remove a number of buffers from a given group, and IORING_OP_REMOVE_BUFFERS provides that functionality.

Jens Axboe committed 6 years ago

Commit 067524e1 parent 52de1fe2 files · +84 −19Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/io_uring.h+1−0
@@ -128,6 +128,7 @@ enum { · 127 unmodified lines
128 IORING_OP_EPOLL_CTL,128 IORING_OP_EPOLL_CTL,
129 IORING_OP_SPLICE,129 IORING_OP_SPLICE,
130 IORING_OP_PROVIDE_BUFFERS,130 IORING_OP_PROVIDE_BUFFERS,
131 IORING_OP_REMOVE_BUFFERS,
131 132
132 /* this goes last, obviously */133 /* this goes last, obviously */
133 IORING_OP_LAST,134 IORING_OP_LAST,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t