summaryrefslogtreecommitdiff
path: root/source3/lib/afs.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-02-15 16:57:16 +0100
committerVolker Lendecke <vl@samba.org>2010-02-16 13:21:10 +0100
commit07978bd175395e0dc770f68fff5b8bd8b0fdeb51 (patch)
tree82eb86cf2e0c3bc2ff70815bd9262df291146caf /source3/lib/afs.c
parentf3bdb163f461175c50b4930fa3464beaee30f4a8 (diff)
downloadsamba-07978bd175395e0dc770f68fff5b8bd8b0fdeb51.tar.gz
samba-07978bd175395e0dc770f68fff5b8bd8b0fdeb51.tar.bz2
samba-07978bd175395e0dc770f68fff5b8bd8b0fdeb51.zip
s3: Optimize g_lock_lock for a heavily contended case
Only check the existence of the lock owner in g_lock_parse, check the rest of the records only when we got the lock successfully. This reduces the load on process_exists which can involve a network roundtrip in the clustered case.
Diffstat (limited to 'source3/lib/afs.c')
0 files changed, 0 insertions, 0 deletions