]> www.infradead.org Git - users/hch/misc.git/commit
io_uring/sqpoll: do not put cpumask on stack
authorFelix Moessbauer <felix.moessbauer@siemens.com>
Mon, 16 Sep 2024 11:11:50 +0000 (13:11 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Sep 2024 13:49:08 +0000 (07:49 -0600)
commit7f44beadcc11adb98220556d2ddbe9c97aa6d42d
tree9b80ad38951311de1c6498d3b52f446a0eba69d7
parenta09c17240bdf2e9fa6d0591afa9448b59785f7d4
io_uring/sqpoll: do not put cpumask on stack

Putting the cpumask on the stack is deprecated for a long time (since
2d3854a37e8), as these can be big. Given that, change the on-stack
allocation of allowed_mask to be dynamically allocated.

Fixes: f011c9cf04c0 ("io_uring/sqpoll: do not allow pinning outside of cpuset")
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
Link: https://lore.kernel.org/r/20240916111150.1266191-1-felix.moessbauer@siemens.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/sqpoll.c