Whamcloud - gitweb
LU-9312 hsm: convert cdt_llog_lock to a rw semaphore 03/26803/6
authorJohn L. Hammond <john.hammond@intel.com>
Wed, 17 Jun 2015 22:46:09 +0000 (15:46 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 29 May 2017 17:29:20 +0000 (17:29 +0000)
commit2d5babe5a9920cab6153b14523da0f12e8bd2239
tree93331596bfdb0baa89b95a557468afdbd1d7f8c0
parentcbeffd6a981b8c6a79cd83a6b063bf55d4e9bb2b
LU-9312 hsm: convert cdt_llog_lock to a rw semaphore

Convert struct coordinator:cdt_llog_lock from a mutex to a rw
semaphore. Add a flag to cdt_llog_process() to indicate whether a read
or write lock is needed.

Change-Id: Ie5c14d8eccda22731ad0ad9594bee7db99fe9cfd
Signed-off-by: John L. Hammond <john.hammond@intel.com>
Reviewed-on: https://review.whamcloud.com/26803
Tested-by: Jenkins
Reviewed-by: Ben Evans <bevans@cray.com>
Reviewed-by: Quentin Bouget <quentin.bouget@cea.fr>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdt/mdt_coordinator.c
lustre/mdt/mdt_hsm_cdt_actions.c
lustre/mdt/mdt_hsm_cdt_client.c
lustre/mdt/mdt_internal.h