Project

General

Profile

Actions

Tasks #46688

open

Tasks #23844: client: break client_lock

client: add inode lock support

Added by Xiubo Li almost 4 years ago. Updated about 3 years ago.

Status:
Fix Under Review
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Tags:
Reviewed:
Affected Versions:
Component(FS):
Client
Labels (FS):
Pull request ID:

Description

We can add one private lock for each inode, it will have better concurrency and could improve the perf.
The lock sequence should always be:

inode->inode_lock.lock();

...
client_lock.lock();

...

client_lock.unlock();
...

inode->inode_lock.unlock();
Actions

Also available in: Atom PDF