Whamcloud - gitweb
LU-11542 import: fix race between imp_state & imp_invalid 95/33395/13
authorYang Sheng <ys@whamcloud.com>
Mon, 15 Oct 2018 09:37:21 +0000 (17:37 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 15 Aug 2019 07:52:31 +0000 (07:52 +0000)
commit29904135df671c624b1e542fdda94b221d76e667
treed6adc02e8bdd5604abf472d52effafcc07f0d795
parent2f16681d68650c0c834c9af3e05c8ed98f481d1d
LU-11542 import: fix race between imp_state & imp_invalid

We set import to LUSTRE_IMP_DISCON and then deactive when
it is unreplayable. Someone may set this import up between
those two operations. So we will get a invalid import with
FULL state.

Signed-off-by: Yang Sheng <ys@whamcloud.com>
Change-Id: Ib4cec0bcaf6f4b221ba260edb94749a4e523f5e6
Reviewed-on: https://review.whamcloud.com/33395
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_ha.h
lustre/lov/lov_obd.c
lustre/ptlrpc/client.c
lustre/ptlrpc/import.c
lustre/ptlrpc/pinger.c
lustre/ptlrpc/ptlrpc_internal.h
lustre/ptlrpc/recover.c