Skip to content

Commit

Permalink
Merge pull request #11170 from ukernel/wip-17253
Browse files Browse the repository at this point in the history
client: fix segment fault in Client::_invalidate_kernel_dcache().

Reviewed-by: John Spray <john.spray@redhat.com>
  • Loading branch information
John Spray committed Sep 23, 2016
2 parents 9ecfed3 + ddea9a5 commit 8ddb7fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client/Client.cc
Expand Up @@ -3947,6 +3947,8 @@ class C_Client_Remount : public Context {

void Client::_invalidate_kernel_dcache()
{
if (unmounting)
return;
if (can_invalidate_dentries && dentry_invalidate_cb && root->dir) {
for (ceph::unordered_map<string, Dentry*>::iterator p = root->dir->dentries.begin();
p != root->dir->dentries.end();
Expand Down

0 comments on commit 8ddb7fe

Please sign in to comment.