]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/BlueFS: carry lock for mkfs
authorSage Weil <sage@redhat.com>
Thu, 23 Jun 2016 14:10:17 +0000 (10:10 -0400)
committerSage Weil <sage@redhat.com>
Thu, 30 Jun 2016 16:56:56 +0000 (12:56 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueFS.cc

index 4025eddbb55b6bfc14331b3b624684e97b9cc822..0017b88c178440e423ef953b0e9dbf68c43c471a 100644 (file)
@@ -235,6 +235,7 @@ int BlueFS::get_block_extents(unsigned id, interval_set<uint64_t> *extents)
 
 int BlueFS::mkfs(uuid_d osd_uuid)
 {
+  std::lock_guard<std::mutex> l(lock);
   dout(1) << __func__
          << " osd_uuid " << osd_uuid
          << dendl;