This adds support for doing madvise(2) through io_uring. We assume that any operation can block, and hence punt everything async. This could be improved, but hard to make bullet proof. The async punt ensures it's safe.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -88,6 +88,7 @@ enum { · 87 unmodified lines | |||
| 88 | IORING_OP_READ, | 88 | IORING_OP_READ, |
| 89 | IORING_OP_WRITE, | 89 | IORING_OP_WRITE, |
| 90 | IORING_OP_FADVISE, | 90 | IORING_OP_FADVISE, |
| 91 | IORING_OP_MADVISE, | ||
| 91 | 92 | ||
| 92 | /* this goes last, obviously */ | 93 | /* this goes last, obviously */ |
| 93 | IORING_OP_LAST, | 94 | IORING_OP_LAST, |