Whamcloud - gitweb
LU-4588 code: replace semaphores with mutexes 58/12258/2
authorDmitry Eremin <dmitry.eremin@intel.com>
Thu, 9 Oct 2014 20:59:06 +0000 (00:59 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 6 Nov 2014 18:42:38 +0000 (18:42 +0000)
commit853b3ea950e57ab014aaa255ad81407e991b0e93
tree8db9c25ff9125f1ecf0a56603cebcbf6296103c1
parentf214942cac27836cd4f359999af12f3cec60f820
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.

Lustre-Commit: 34b9fe2f703d91e7ad5b315aaac696d3a314cf0b
Lustre-Review: 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>
Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Change-Id: Iea30c0853faf1ff18821b1facd2020ef91df1764
Reviewed-on: http://review.whamcloud.com/12258
Reviewed-by: Oleg Drokin <oleg.drokin@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