Whamcloud - gitweb
LU-2177 ldlm: flock completion fixes. 05/10005/4
authorVitaly Fertman <vitaly_fertman@xyratex.com>
Fri, 25 Apr 2014 22:58:25 +0000 (02:58 +0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 30 Apr 2014 16:13:26 +0000 (16:13 +0000)
commit381604c5c45c7f7394185f434bb8ad1dd4ed88af
tree69e2c6f1d30e53f3e691f93f6e88a50d5ebb5135
parenta7246f90052f0b38637d365b9743cafd56c89a9d
LU-2177 ldlm: flock completion fixes.

move checks for FAILED, DESTROYED flags under ldlm spinlock,
destroy flock atomically with the check it is not destroyed yet.

do not put the granted flock into the resource if this is
UNLOCK, TEST, or DEADLOCK'ed flock.

a set of flock tests which races reply completion for
new flock request/test flock/unlock with namespace cleanup
on eviction.

Signed-off-by: Vitaly Fertman <vitaly_fertman@xyratex.com>
Change-Id: I97fa040a26eda6c6728929d10b29c2316db663e3
Reviewed-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com>
Reviewed-by: Andriy Skulysh <andriy_skulysh@xyratex.com>
Tested-by: Alexander Lezhoev <alexander_lezhoev@xyratex.com>
Reviewed-by: Vitaly Fertman <vitaly_fertman@xyratex.com>
Xyratex-bug-id: MRP-1588
Reviewed-on: http://review.whamcloud.com/10005
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
13 files changed:
libcfs/include/libcfs/libcfs_fail.h
libcfs/libcfs/fail.c
lustre/include/lustre_dlm_flags.h
lustre/include/obd_support.h
lustre/ldlm/ldlm_flock.c
lustre/ldlm/ldlm_lock.c
lustre/ldlm/ldlm_request.c
lustre/ldlm/ldlm_resource.c
lustre/llite/file.c
lustre/tests/flocks_test.c
lustre/tests/recovery-small.sh
lustre/tests/sanity.sh
lustre/tests/test-framework.sh