]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: restrict IORING_SETUP_SQPOLL to root
authorJens Axboe <axboe@kernel.dk>
Mon, 8 Apr 2019 16:51:01 +0000 (10:51 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 8 Apr 2019 16:51:01 +0000 (10:51 -0600)
commitac122f8ac30c27c5f3bccb39a9a1de67c3786b98
tree4f3f31a7670b0f9e0c6aebf008aef8bd5430394e
parenta581227982b044074aa072378536fa41336a4395
io_uring: restrict IORING_SETUP_SQPOLL to root

This options spawns a kernel side thread that will poll for submissions
(and completions, if IORING_SETUP_IOPOLL is set). As this allows a user
to potentially use more cycles outside of the normal hierarchy,
restrict the use of this feature to root.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c