diff options
author | Zhang Huan <zhanghuan@open-fs.com> | 2017-10-25 11:42:37 +0800 |
---|---|---|
committer | Xavier Hernandez <jahernan@redhat.com> | 2017-11-30 12:34:25 +0000 |
commit | aba2b775bd4bd5528fcefcceb02fd70d858ec2d5 (patch) | |
tree | 271d75e4f76cceb9b088e67784f2c0e34ae9f245 /contrib | |
parent | 7ae126dcd967a953a64102a96de8e0678331e548 (diff) |
libglusterfs: use rwlock for fdtable
To resolve a fd from client requests, need to take a mutex lock for the
fdtable to do the lookup. When a client is busy doing read and write,
the mutex lock could introduce contention. Therefore, use rwlock instead
of mutex to reduce the contention.
Change-Id: Ic833aed738a178a7ea1abafed7eb13814989d28c
BUG: 1518582
Signed-off-by: Zhang Huan <zhanghuan@open-fs.com>
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions