]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/os/fs/aio.h
update sources to v12.1.1
[ceph.git] / ceph / src / os / fs / aio.h
index c4757158cc90aa076699a09fe2db627d0133eae5..2517e5f64fbbb3789b8847b7665dfab08a1aacf2 100644 (file)
@@ -11,6 +11,7 @@
 #include <boost/container/small_vector.hpp>
 
 #include "include/buffer.h"
+#include "include/types.h"
 
 struct aio_t {
   struct iocb iocb;  // must be first element; see shenanigans in aio_queue_t
@@ -55,6 +56,8 @@ struct aio_queue_t {
   int max_iodepth;
   io_context_t ctx;
 
+  typedef list<aio_t>::iterator aio_iter;
+
   explicit aio_queue_t(unsigned max_iodepth)
     : max_iodepth(max_iodepth),
       ctx(0) {
@@ -83,6 +86,8 @@ struct aio_queue_t {
   }
 
   int submit(aio_t &aio, int *retries);
+  int submit_batch(aio_iter begin, aio_iter end, uint16_t aios_size, 
+                  void *priv, int *retries);
   int get_next_completed(int timeout_ms, aio_t **paio, int max);
 };