mirror of
https://github.com/ceph/ceph
synced 2024-12-17 08:57:28 +00:00
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:
commit
40208315c9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user