summaryrefslogtreecommitdiffstats
path: root/include/block
diff options
context:
space:
mode:
authorStefan Hajnoczi2020-03-05 18:08:01 +0100
committerStefan Hajnoczi2020-03-09 17:41:31 +0100
commit3aa221b382c9b36db1750ef5ed340b6566aacb8c (patch)
treebdc6ceb75661f05b66ab4b77e9a4a59c0da1e490 /include/block
parentaio-posix: completely stop polling when disabled (diff)
downloadqemu-3aa221b382c9b36db1750ef5ed340b6566aacb8c.tar.gz
qemu-3aa221b382c9b36db1750ef5ed340b6566aacb8c.tar.xz
qemu-3aa221b382c9b36db1750ef5ed340b6566aacb8c.zip
aio-posix: move RCU_READ_LOCK() into run_poll_handlers()
Now that run_poll_handlers_once() is only called by run_poll_handlers() we can improve the CPU time profile by moving the expensive RCU_READ_LOCK() out of the polling loop. This reduces the run_poll_handlers() from 40% CPU to 10% CPU in perf's sampling profiler output. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Link: https://lore.kernel.org/r/20200305170806.1313245-3-stefanha@redhat.com Message-Id: <20200305170806.1313245-3-stefanha@redhat.com>
Diffstat (limited to 'include/block')
0 files changed, 0 insertions, 0 deletions