]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd: correct the name of mylock in lbirbd::read
authorZhiqiang Wang <zhiqiang.wang@intel.com>
Fri, 20 Mar 2015 06:39:19 +0000 (14:39 +0800)
committerZhiqiang Wang <zhiqiang.wang@intel.com>
Mon, 23 Mar 2015 02:45:24 +0000 (10:45 +0800)
Otherwise it may cause conflicts when registering the lock.

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
src/librbd/internal.cc

index ae9b8021a3ae29e77e7557075be124fc8d673c65..7c732b41c1796a6b9a21b1dff57e3cab934e0c66 100644 (file)
@@ -3028,7 +3028,7 @@ reprotect_and_return_err:
   ssize_t read(ImageCtx *ictx, const vector<pair<uint64_t,uint64_t> >& image_extents,
                char *buf, bufferlist *pbl, int op_flags)
   {
-    Mutex mylock("IoCtxImpl::write::mylock");
+    Mutex mylock("librbd::read::mylock");
     Cond cond;
     bool done;
     int ret;