]> Git Repo - qemu.git/commit
aio-posix: move RCU_READ_LOCK() into run_poll_handlers()
authorStefan Hajnoczi <[email protected]>
Thu, 5 Mar 2020 17:08:01 +0000 (17:08 +0000)
committerStefan Hajnoczi <[email protected]>
Mon, 9 Mar 2020 16:41:31 +0000 (16:41 +0000)
commit3aa221b382c9b36db1750ef5ed340b6566aacb8c
treebdc6ceb75661f05b66ab4b77e9a4a59c0da1e490
parente4346192f1c2e1683a807b46efac47ef0cf9b545
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Message-Id: <20200305170806.1313245[email protected]>
util/aio-posix.c
This page took 0.024185 seconds and 4 git commands to generate.