]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: avoid using lock within AIO completion where possible
authorJason Dillaman <dillaman@redhat.com>
Fri, 26 Apr 2019 18:24:15 +0000 (14:24 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 2 May 2019 13:30:45 +0000 (09:30 -0400)
commit002afa0fe37544ab4eb15f973e00068e1240c0ef
tree3efff4b3701d3ecf3facfc8ef5fb79c0a87c80c3
parentb5fc7ecaf7a3741d227ab5a9108392813dd03495
librbd: avoid using lock within AIO completion where possible

'perf' shows several percent of CPU is being utilized handling the
heavyweight locking semantics of AIO completion. With these changes,
the lock contention disappears.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/api/Group.cc
src/librbd/io/AioCompletion.cc
src/librbd/io/AioCompletion.h
src/librbd/io/ReadResult.cc
src/librbd/librbd.cc