Whamcloud - gitweb
LU-1882 llite: Adding timed wait in ll_umount_begin 61/20061/7
authorRahul Deshmukh <rahul.deshmukh@seagate.com>
Thu, 8 Sep 2016 19:29:57 +0000 (00:59 +0530)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 8 Oct 2016 16:38:10 +0000 (16:38 +0000)
commit205a57df278733d1c733defe5c80de0d745e1bd5
tree2917e279ba10f8dd8a4b3eabe0a3dde1507414f3
parentc7ede9238c24b8187ee38c80d5b680c8a5a8e703
LU-1882 llite: Adding timed wait in ll_umount_begin

There exists timing race between umount and other
thread which will increment the reference count on
mnt e.g. getattr. If umount thread lose the race
then umount fails with EBUSY error. To avoid this
timed wait is added so that umount thread will wait
for user to decrement the mnt reference count.

This patch also fixes below two problems
1.the fail_loc code in conf-sanity test 45 to
OR with the OBD_FAIL_ONCE (0x80000000) to prevent
the fail_loc from looping forever.

2.fixes the fail_loc code name from
OBD_FAIL_PTLRPC_LONG_UNLINK to
OBD_FAIL_PTLRPC_LONG_REPL_UNLINK.

Signed-off-by: Rahul Deshmukh <rahul.deshmukh@seagate.com>
Signed-off-by: Lokesh Nagappa Jaliminche <lokesh.jaliminche@seagate.com>
Signed-off-by: Jian Yu <jian.yu@intel.com>
Change-Id: Icab9b560cadcb8623c8592bfc4c5a842277ad266
Seagate-bug-id: MRP-1192
Reviewed-on: http://review.whamcloud.com/20061
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/tests/conf-sanity.sh