Whamcloud - gitweb
LU-1715 ptlrpc: flock deadlock detection does not work 53/3553/19
authorAndriy Skulysh <Andriy_Skulysh@xyratex.com>
Tue, 23 Jul 2013 23:08:51 +0000 (02:08 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 6 Aug 2013 17:10:29 +0000 (17:10 +0000)
commit5bd85b467a4b6ef57d7a3c119296c9a317afc73b
treea1dd6a4e95d64191c8d88c00b8118aa41c850771
parent8b8b7b3c4c1060e0a48be38ca7859d229a6dfca7
LU-1715 ptlrpc: flock deadlock detection does not work

Flock deadlocks are checked on the first attempt to grant
the flock only. If we try again to grant it after its
blocking lock is cancelled, we don't check for deadlocks
which also may exist.

Perform deadlock detection during reprocess

Xyratex-bug-id: MRP-393
Signed-off-by: Andriy Skulysh <Andriy_Skulysh@xyratex.com>
Reviewed-by: Vitaly Fertman <vitaly_fertman@xyratex.com>
Reviewed-by: Bruce Korb <bruce_korb@xyratex.com>
Change-Id: Ie4d21da0a0b18458f786c9903663372aa24700fb
Reviewed-on: http://review.whamcloud.com/3553
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Keith Mannthey <keith.mannthey@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
12 files changed:
contrib/bit-masks/lustre_dlm_flags.def
lustre/include/lustre/lustre_idl.h
lustre/include/lustre_dlm_flags.h
lustre/ldlm/ldlm_flock.c
lustre/llite/llite_lib.c
lustre/obdclass/lprocfs_status.c
lustre/ptlrpc/wiretest.c
lustre/tests/Makefile.am
lustre/tests/flock_deadlock.c [new file with mode: 0644]
lustre/tests/sanity.sh
lustre/utils/wirecheck.c
lustre/utils/wiretest.c