Merge pull request #10027 from batrick/client-root-lock

client: add missing client_lock for get_root

Reviewed-by: John Spray <john.spray@redhat.com>
This commit is contained in:
John Spray 2016-07-06 14:12:55 +01:00 committed by GitHub
commit 40208315c9

View File

@ -360,6 +360,7 @@ void Client::tear_down_cache()
inodeno_t Client::get_root_ino()
{
Mutex::Locker l(client_lock);
if (use_faked_inos())
return root->faked_ino;
else
@ -368,6 +369,7 @@ inodeno_t Client::get_root_ino()
Inode *Client::get_root()
{
Mutex::Locker l(client_lock);
root->ll_get();
return root;
}