Whamcloud - gitweb
LU-11542 import: fix race between imp_state & imp_invalid 96/35796/3
authorYang Sheng <ys@whamcloud.com>
Mon, 15 Oct 2018 09:37:21 +0000 (17:37 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 28 Sep 2019 06:49:36 +0000 (06:49 +0000)
commitfba0066a3b05f0afd15ab444c1e4aea98bc41178
treed32d54632413cd754d1820bc9c560def41564d0b
parent3b8f6e80b1891bf9e47ad43dc0d31bab40faa42d
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.

Lustre-change: https://review.whamcloud.com/33395
Lustre-commit: 29904135df671c624b1e542fdda94b221d76e667

Signed-off-by: Yang Sheng <ys@whamcloud.com>
Change-Id: Ib4cec0bcaf6f4b221ba260edb94749a4e523f5e6
Reviewed-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/35796
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
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