rbd: fixed busy-loop when using eventfd polling
authorJason Dillaman <dillaman@redhat.com>
Wed, 7 Mar 2018 00:01:18 +0000 (19:01 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 7 Mar 2018 00:01:18 +0000 (19:01 -0500)
commit4001b1ba9d7071e8f7775d08404aad77378d6728
tree96132f4363b3505b20107c03fcab79674581b88c
parentb979af5cba25e31dc2a8f2fd89ac5e40c24b6519
rbd: fixed busy-loop when using eventfd polling

The eventfd poll would continuously fire since the fd was never
read. Switched to a semaphore eventfd and now drain the events
as completions are handled.
engines/rbd.c