Whamcloud - gitweb
LU-4588 code: replace semaphores with mutexes 94/9294/5
authorDmitry Eremin <dmitry.eremin@intel.com>
Tue, 18 Feb 2014 20:08:20 +0000 (00:08 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 28 Mar 2014 04:54:22 +0000 (04:54 +0000)
commit34b9fe2f703d91e7ad5b315aaac696d3a314cf0b
treeef89d436c6f927bc602fa21c96c8599ffa47ec66
parenta4a164c9e4c703c1f869de3a2e22793c66f0f74a
LU-4588 code: replace semaphores with mutexes

It's just optimization. The mutex subsystem is slightly faster
and has better scalability for contended workloads.

Remove the lustre_lock and it's accessor functions l_lock(),
l_unlock(), l_lock_init(), and l_has_lock() since they have
not been used by the code since Lustre 1.6.

Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Change-Id: I1b6defe7bdea2f7b33638a98c73277290c10bea1
Reviewed-on: http://review.whamcloud.com/9294
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
17 files changed:
libcfs/libcfs/linux/linux-cpu.c
lnet/klnds/gnilnd/gnilnd.c
lnet/klnds/gnilnd/gnilnd.h
lnet/klnds/gnilnd/gnilnd_conn.c
lnet/klnds/gnilnd/gnilnd_stack.c
lnet/klnds/gnilnd/gnilnd_sysctl.c
lustre/include/lustre_lib.h
lustre/include/obd.h
lustre/ldlm/ldlm_lib.c
lustre/mgc/mgc_request.c
lustre/osd-ldiskfs/osd_compat.c
lustre/osd-ldiskfs/osd_iam.c
lustre/osd-ldiskfs/osd_iam.h
lustre/osd-ldiskfs/osd_internal.h
lustre/quota/qsd_config.c
lustre/quota/qsd_internal.h
lustre/quota/qsd_lib.c