]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/filestore/CollectionIndex: disable lockdep on access_lock
authorSage Weil <sage@redhat.com>
Sat, 30 Jan 2016 14:28:54 +0000 (09:28 -0500)
committerSage Weil <sage@redhat.com>
Mon, 1 Feb 2016 20:02:37 +0000 (15:02 -0500)
This overflows the lockdep table when there are too many PGs. This
code is static so I'm not worried about new locking bugs.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/filestore/CollectionIndex.h

index 63744cbd08dea890ade94e0b7229c436a753f23c..a03b09e4b38184f33c19d82269c62de4208f9124 100644 (file)
@@ -73,7 +73,6 @@ protected:
   };
  public:
 
-  string access_lock_name;
   RWLock access_lock;
   /// Type of returned paths
   typedef ceph::shared_ptr<Path> IndexedPath;
@@ -177,8 +176,7 @@ protected:
   virtual int prep_delete() { return 0; }
 
   CollectionIndex(const coll_t& collection):
-    access_lock_name ("CollectionIndex::access_lock::" + collection.to_str()),
-    access_lock(access_lock_name.c_str()) {}
+    access_lock("CollectionIndex::access_lock", true, false) {}
 
   /*
    * Pre-hash the collection, this collection should map to a PG folder.