Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Oct 29, 2014

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit d8b64af2a1688c3c3d218cba0faad57a3ba050e8:

rbd: various fixes and cleanups (2014-10-27 10:53:52 -0600)

are available in the git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to 8859391bb7d77680ede51b46e770237abae566dc:

engines/glusterfs_async: cleanups (2014-10-28 20:48:33 -0600)

----------------------------------------------------------------
Jens Axboe (6):
engines/rbd: add support for rbd_invalidate_cache() engines/rbd: use rbd_aio_is_complete() and add TRIM support engines/rbd: remove unused rbd_options->td engines/rbd: add option to busy poll on event completion engines/glfs_async: add trim support engines/glusterfs_async: cleanups

 configure                 |   47 +++++++++++++++++-
 engines/glusterfs_async.c |   71 ++++++++++++---------------
 engines/rbd.c             |  119 +++++++++++++++++++++++----------------------
 3 files changed, 137 insertions(+), 100 deletions(-)

---

Diff of recent changes:

configure +46 -1
index 58f02fa..de0fc89 100755
@@ -1203,6 +1203,26 @@ fi
 echo "Rados Block Device engine     $rbd"
 
 ##########################################
+# check for rbd_invaidate_cache()
+rbd_inval="no"
+if test "$rbd" = "yes"; then
+cat > $TMPC << EOF
+#include <rbd/librbd.h>
+
+int main(int argc, char **argv)
+{
+  rbd_image_t image;
+
+  return rbd_invalidate_cache(image);
+}
+EOF
+if compile_prog "" "-lrbd -lrados" "rbd"; then
+  rbd_inval="yes"
+fi
+echo "rbd_invalidate_cache          $rbd_inval"
+fi
+
+##########################################
 # Check whether we have setvbuf
 setvbuf="no"
 cat > $TMPC << EOF
@@ -1241,6 +1261,7 @@ fi
 
 ##########################################
 # check for gfapi fadvise support
+if test "$gfapi" = "yes" ; then
 gf_fadvise="no"
 cat > $TMPC << EOF
 #include <glusterfs/api/glfs.h>
@@ -1253,11 +1274,29 @@ int main(int argc, char **argv)
   return 0;
 }
 EOF
-
 if compile_prog "" "-lgfapi -lglusterfs" "gfapi"; then
   gf_fadvise="yes"
 fi
 echo "Gluster API use fadvise       $gf_fadvise"
+fi
+
+##########################################
+# check for gfapi trim support
+gf_trim="no"
+if test "$gfapi" = "yes" ; then
+cat > $TMPC << EOF
+#include <glusterfs/api/glfs.h>
+
+int main(int argc, char **argv)
+{
+  return glfs_discard_async(NULL, 0, 0);
+}
+EOF
+if compile_prog "" "-lgfapi -lglusterfs" "gf trim"; then
+  gf_trim="yes"
+fi
+echo "Gluster API trim support      $gf_trim"
+fi
 
 ##########################################
 # Check if we support stckf on s390
@@ -1489,6 +1528,9 @@ fi
 if test "$rbd" = "yes" ; then
   output_sym "CONFIG_RBD"
 fi
+if test "$rbd_inval" = "yes" ; then
+  output_sym "CONFIG_RBD_INVAL"
+fi
 if test "$setvbuf" = "yes" ; then
   output_sym "CONFIG_SETVBUF"
 fi
@@ -1502,6 +1544,9 @@ fi
 if test "$gf_fadvise" = "yes" ; then
   output_sym "CONFIG_GF_FADVISE"
 fi
+if test "$gf_trim" = "yes" ; then
+  output_sym "CONFIG_GF_TRIM"
+fi
 if test "$libhdfs" = "yes" ; then
   output_sym "CONFIG_LIBHDFS"
 fi
engines/glusterfs_async.c +31 -40

159 lines not on this page · raw message

engines/rbd.c +60 -59

229 lines not on this page · raw message