]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #3796 from ceph/wip-librbd-async-operations
authorJosh Durgin <jdurgin@redhat.com>
Thu, 26 Feb 2015 02:52:19 +0000 (18:52 -0800)
committerJosh Durgin <jdurgin@redhat.com>
Thu, 26 Feb 2015 02:52:19 +0000 (18:52 -0800)
librbd: better handling for async maintenance requests

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
1  2 
src/librbd/AsyncFlattenRequest.cc
src/librbd/AsyncTrimRequest.cc
src/librbd/ImageCtx.cc
src/librbd/ImageCtx.h
src/librbd/ImageWatcher.cc
src/librbd/internal.cc

Simple merge
Simple merge
Simple merge
index deca81d11b7b0455359657e5438c372b98cf2db8,c7b48a0e1d3c12df20a9afe94ee46b110c41acc8..c8efc0305fce220b1e078cfe5387270fe67af9d4
@@@ -37,8 -36,10 +37,9 @@@ class PerfCounters
  namespace librbd {
  
    class AsyncOperation;
+   class AsyncRequest;
    class CopyupRequest;
    class ImageWatcher;
 -  class ObjectMap;
  
    struct ImageCtx {
      CephContext *cct;
      std::map<uint64_t, CopyupRequest*> copyup_list;
  
      xlist<AsyncOperation*> async_ops;
+     xlist<AsyncRequest*> async_requests;
+     Cond async_requests_cond;
  
 -    ObjectMap *object_map;
 +    ObjectMap object_map;
  
      atomic_t async_request_seq;
  
Simple merge
Simple merge