Message ID | 1354243014-21072-3-git-send-email-zheng.z.yan@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/src/mds/Server.cc b/src/mds/Server.cc index 4c66f4a..59d7d3c 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -2637,6 +2637,12 @@ void Server::handle_client_openc(MDRequest *mdr) reply_request(mdr, -EEXIST, dnl->get_inode(), dn); return; } + + mdcache->request_drop_non_rdlocks(mdr); + + // remote link, avoid rdlock_path_pin_ref() returning null + if (!mdr->in[0]) + mdr->done_locking = false; handle_client_open(mdr); return;