io_uring: allow SQPOLL without CAP_SYS_ADMIN or CAP_SYS_NICE
authorJens Axboe <axboe@kernel.dk>
Thu, 25 Mar 2021 16:21:35 +0000 (10:21 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 25 Mar 2021 16:27:04 +0000 (10:27 -0600)
commit07251094c50993194a7e4d379b5200c3d9651c66
treeef67d67d6a505739d23fedc12009225e43cb0cec
parentb852442e03789183bc376ae81aa20e30c8eb84ac
io_uring: allow SQPOLL without CAP_SYS_ADMIN or CAP_SYS_NICE

Now that we have any worker being attached to the original task as
threads, accounting of CPU time is directly attributed to the original
task as well. This means that we no longer have to restrict SQPOLL to
needing elevated privileges, as it's really no different from just having
the task spawn a busy looping thread in userspace.

Reported-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c