Recent changes (master)
The following changes since commit 0228cfe7bb04b3c8329f8e77ee47e30e1a5a03cd:
HOWTO: update to include iolog replay (2016-10-18 09:12:45 -0600)
are available in the git repository at:
git://git.kernel.dk/fio.git master
for you to fetch changes up to 99350ae471e1271cae7bb3ef68b5ee0e11c21828:
Merge branch 'rbd-poll' (2016-10-19 09:24:04 -0600)
----------------------------------------------------------------
Jens Axboe (2):
rbd: poll cleanups
Merge branch 'rbd-poll'
Pan Liu (1):
use poll() and rbd_poll_io_events to speed up io retrieval.
configure | 29 ++++++++++++++++++++++ engines/rbd.c | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 105 insertions(+), 2 deletions(-)
---
Diff of recent changes:
configure +29 -0
@@ -1335,6 +1335,32 @@ fi echo "Rados Block Device engine $rbd" ########################################## +# check for rbd_poll +rbd_poll="no" +if test "$rbd" = "yes"; then +cat > $TMPC << EOF +#include <rbd/librbd.h> +#include <sys/eventfd.h> + +int main(int argc, char **argv) +{ + rbd_image_t image; + rbd_completion_t comp; + + int fd = eventfd(0, EFD_NONBLOCK); + rbd_set_image_notification(image, fd, EVENT_TYPE_EVENTFD); + rbd_poll_io_events(image, comp, 1); + + return 0; +} +EOF +if compile_prog "" "-lrbd -lrados" "rbd"; then + rbd_poll="yes" +fi +echo "rbd_poll $rbd_poll" +fi + +########################################## # check for rbd_invaidate_cache() rbd_inval="no" if test "$rbd" = "yes"; then
@@ -1853,6 +1879,9 @@ fi if test "$rbd" = "yes" ; then output_sym "CONFIG_RBD" fi +if test "$rbd_poll" = "yes" ; then + output_sym "CONFIG_RBD_POLL" +fi if test "$rbd_inval" = "yes" ; then output_sym "CONFIG_RBD_INVAL" fi
engines/rbd.c +76 -2
124 lines not on this page · raw message