Merge PR #18174 into master

* refs/pull/18174/head:
	mds: no assertion on inode being purging in find_ino_peers()

Reviewed-by: Zheng Yan <zyan@redhat.com>
This commit is contained in:
Patrick Donnelly 2017-10-26 19:39:13 -07:00
commit 7ff6ac907a
No known key found for this signature in database
GPG Key ID: 3A2A7E25BEA8AADB

View File

@ -8816,7 +8816,12 @@ void MDCache::open_ino(inodeno_t ino, int64_t pool, MDSInternalContextBase* fin,
void MDCache::find_ino_peers(inodeno_t ino, MDSInternalContextBase *c, mds_rank_t hint)
{
dout(5) << "find_ino_peers " << ino << " hint " << hint << dendl;
assert(!have_inode(ino));
CInode *in = get_inode(ino);
if (in && in->state_test(CInode::STATE_PURGING)) {
c->complete(-ESTALE);
return;
}
assert(!in);
ceph_tid_t tid = ++find_ino_peer_last_tid;
find_ino_peer_info_t& fip = find_ino_peer[tid];