Commit 8ac9b0d3 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring/sqpoll: switch away from getrusage() for CPU accounting



getrusage() does a lot more than what the SQPOLL accounting needs, the
latter only cares about (and uses) the stime. Rather than do a full
RUSAGE_SELF summation, just query the used stime instead.

Cc: stable@vger.kernel.org
Fixes: 3fcb9d17 ("io_uring/sqpoll: statistics of the true utilization of sq threads")
Reviewed-by: default avatarGabriel Krisman Bertazi <krisman@suse.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 4ec703ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment