Whamcloud - gitweb
LU-12949 obdclass: don't extend timer if obd stops 03/36703/3
authorAlexander Boyko <c17825@cray.com>
Thu, 7 Nov 2019 11:13:50 +0000 (06:13 -0500)
committerOleg Drokin <green@whamcloud.com>
Sat, 14 Dec 2019 05:57:09 +0000 (05:57 +0000)
commitbc871f8ff53068bfe69ad7653479b42e6a6d2d93
treee001ea49949d34dbcf7fb15c31e186f8724e01b5
parent8a60fa2e2fcd28c2772d90e76d36430d30b01905
LU-12949 obdclass: don't extend timer if obd stops

During umount all clients became stale, so the first check at
check_for_recovery_ready() is passed, but there is no guarantee
that recovery timer was started. So, we need to check obd_stopping.

The test 138 is added to recovery-smal.sh.
It reproduces the issue when MDT is waiting for clients during
recovery and MDT umount happens.
extend_recovery_timer()) ASSERTION( obd->obd_recovery_start != 0 )
failed

Cray-bug-id: LUS-7917
Signed-off-by: Alexander Boyko <c17825@cray.com>
Change-Id: I1906fdfcc10606912a1f81560bb60b9d424db149
Reviewed-on: https://review.whamcloud.com/36703
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Andriy Skulysh <c17819@cray.com>
Reviewed-by: Sergey Cheremencev <c17829@cray.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd_support.h
lustre/ldlm/ldlm_lib.c
lustre/lod/lod_dev.c
lustre/tests/recovery-small.sh