Skip to content

Commit

Permalink
Merge pull request #11414 from dachary/wip-17477-jewel
Browse files Browse the repository at this point in the history
jewel: Crash in Client::_invalidate_kernel_dcache when reconnecting during unmount

Reviewed-by: John Spray <john.spray@redhat.com>
  • Loading branch information
Loic Dachary committed Oct 17, 2016
2 parents c7b7f2e + 10e603b commit 986a8b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client/Client.cc
Expand Up @@ -3925,6 +3925,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 986a8b5

Please sign in to comment.