aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-09-26 18:15:26 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2020-10-25 20:02:02 -0400
commit85353e919f6eb28ee4a797b06de8cc4c48dec2d7 (patch)
treedd06595fc7c89297b0cda5c5384b6f29e2e012f3 /tools/perf/scripts/python/export-to-postgresql.py
parentep_insert(): don't open-code ep_remove() on failure exits (diff)
downloadlinux-dev-85353e919f6eb28ee4a797b06de8cc4c48dec2d7.tar.xz
linux-dev-85353e919f6eb28ee4a797b06de8cc4c48dec2d7.zip
ep_insert(): we only need tep->mtx around the insertion itself
We do need ep->mtx (and we are holding it all along), but that's the lock on the epoll we are inserting into; locking of the epoll being inserted is not needed for most of that work - as the matter of fact, we only need it to provide barriers for the fastpath check (for now). Move taking and releasing it into ep_insert(). The caller (do_epoll_ctl()) doesn't need to bother with that at all. Moreover, that way we kill the kludge in ep_item_poll() - now it's always called with tep unlocked. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions