All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yan, Zheng" <zheng.z.yan@intel.com>
To: ceph-devel@vger.kernel.org, sage@inktank.com
Cc: "Yan, Zheng" <zheng.z.yan@intel.com>
Subject: [PATCH 4/5] mds: call eval() after cap is imported
Date: Fri, 30 Nov 2012 10:36:53 +0800	[thread overview]
Message-ID: <1354243014-21072-5-git-send-email-zheng.z.yan@intel.com> (raw)
In-Reply-To: <1354243014-21072-1-git-send-email-zheng.z.yan@intel.com>

From: "Yan, Zheng" <zheng.z.yan@intel.com>

The migrator calls eval() for imported caps after importing a
directory tree. We should do the same thing after importing a
inode.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
---
 src/mds/Migrator.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mds/Migrator.cc b/src/mds/Migrator.cc
index 41d97e9..fcc06cd 100644
--- a/src/mds/Migrator.cc
+++ b/src/mds/Migrator.cc
@@ -2613,6 +2613,7 @@ void Migrator::logged_import_caps(CInode *in,
 
   assert(cap_imports.count(in));
   finish_import_inode_caps(in, from, cap_imports[in]);  
+  mds->locker->eval(in, CEPH_CAP_LOCKS);
 
   mds->send_message_mds(new MExportCapsAck(in->ino()), from);
 }
-- 
1.7.11.7


  parent reply	other threads:[~2012-11-30  2:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-30  2:36 [PATCH 0/5] mds: fixes for mds Yan, Zheng
2012-11-30  2:36 ` [PATCH 1/5] mds: fix journaling issue regarding rstat accounting Yan, Zheng
2012-11-30  2:36 ` [PATCH 2/5] mds: fix handle_client_openc() hang Yan, Zheng
2012-11-30  2:36 ` [PATCH 3/5] mds: alllow handle_client_readdir() fetching freezing dir Yan, Zheng
2012-11-30  2:36 ` Yan, Zheng [this message]
2012-11-30  2:36 ` [PATCH 5/5] mds: compare sessionmap version before replaying imported sessions Yan, Zheng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1354243014-21072-5-git-send-email-zheng.z.yan@intel.com \
    --to=zheng.z.yan@intel.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=sage@inktank.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.