diff options
author | 2020-07-18 11:31:21 +0300 | |
---|---|---|
committer | 2020-07-24 13:00:45 -0600 | |
commit | cbcf72148da4af55ea81cfb351ea7c026ff1014f (patch) | |
tree | 2acbc156101cc44369b36d1c58d2d6c82c0fb041 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | io_uring: don't miscount pinned memory (diff) | |
download | wireguard-linux-cbcf72148da4af55ea81cfb351ea7c026ff1014f.tar.xz wireguard-linux-cbcf72148da4af55ea81cfb351ea7c026ff1014f.zip |
io_uring: return locked and pinned page accounting
Locked and pinned memory accounting in io_{,un}account_mem() depends on
having ->sqo_mm, which is NULL after a recent change for non SQPOLL'ed
io_ring. That disables the accounting.
Return ->sqo_mm initialisation back, and do __io_sq_thread_acquire_mm()
based on IORING_SETUP_SQPOLL flag.
Fixes: 8eb06d7e8dd85 ("io_uring: fix missing ->mm on exit")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions