Whamcloud - gitweb
LU-5579 ldlm: re-sent enqueue vs lock destroy race
authorVitaly Fertman <vitaly_fertman@xyratex.com>
Mon, 29 Sep 2014 23:42:32 +0000 (19:42 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 7 Oct 2014 15:44:26 +0000 (11:44 -0400)
commitd29c0438bdf38e89d5638030b3770d7740121f8d
tree887605c273cbdf16946579fa249996bf9f52d7c6
parentb4030258ea8c453fc88b541706acb51eb0e80485
LU-5579 ldlm: re-sent enqueue vs lock destroy race

upon lock enqueue re-send, lock is pinned by ldlm_handle_enqueue0,
however it may race with client eviction or even lcok cancel (if
a reply for the original RPC finally reached the client) and the
lock cann be found by cookie anymore:

 ASSERTION( lock != NULL ) failed: Invalid lock handle

Signed-off-by: Vitaly Fertman <vitaly_fertman@xyratex.com>
Change-Id: I9d8156bf78a1b83ac22ffaa1148feb43bef37b1a
Xyratex-bug-id: MRP-2094
lustre/mdt/mdt_handler.c
lustre/target/tgt_handler.c
lustre/tests/recovery-small.sh