rbd: fix aio flush support handling
Add ifdef around tcmu_rbd_flush for LIBRBD_SUPPORTS_AIO_FLUSH support.
@@ -610,6 +610,8 @@ out:
return SAM_STAT_TASK_SET_FULL;
}
+#ifdef LIBRBD_SUPPORTS_AIO_FLUSH
+
static int tcmu_rbd_flush(struct tcmu_device *dev, struct tcmulib_cmd *cmd)
{
struct tcmu_rbd_state *state = tcmu_get_dev_private(dev);
@@ -648,6 +650,8 @@ out:
return SAM_STAT_TASK_SET_FULL;
}
+#endif
+
/*
* For backstore creation
*
