diff options
| author | Alexandre Negrel <alexandre@negrel.dev> | 2025-12-30 21:57:28 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-12-31 04:49:31 +0300 |
| commit | fc5ff2500976cd2710a7acecffd12d95ee4f98fc (patch) | |
| tree | ee68e983d69f4b10ac8c7b36e65992b76104c8db /include/linux/stringify.h | |
| parent | b14fad555302a2104948feaff70503b64c80ac01 (diff) | |
| download | linux-fc5ff2500976cd2710a7acecffd12d95ee4f98fc.tar.xz | |
io_uring: use GFP_NOWAIT for overflow CQEs on legacy rings
Allocate the overflowing CQE with GFP_NOWAIT instead of GFP_ATOMIC. This
changes causes allocations to fail earlier in out-of-memory situations,
rather than being deferred. Using GFP_ATOMIC allows a process to exceed
memory limits.
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=220794
Signed-off-by: Alexandre Negrel <alexandre@negrel.dev>
Link: https://lore.kernel.org/io-uring/20251229201933.515797-1-alexandre@negrel.dev/
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/stringify.h')
0 files changed, 0 insertions, 0 deletions
