Whamcloud - gitweb
LU-12965 obdclass: remove assertion for imp_refcount 66/37066/2
authorLi Dongyang <dongyangli@ddn.com>
Wed, 13 Nov 2019 04:01:25 +0000 (15:01 +1100)
committerOleg Drokin <green@whamcloud.com>
Fri, 3 Jan 2020 23:43:46 +0000 (23:43 +0000)
commitef9d21b694f5d8ff3ac3e6bcac128d7d929021bc
treeba1402d522835e418a699998d7bc00f9549ce2e6
parentf1edda04ac6821ffa2c1e9be01437a55852df4cf
LU-12965 obdclass: remove assertion for imp_refcount

After calling obd_zombie_import_add(), obd_import could
be freed by obd_zombie before we check imp_refcount with
LASSERT_ATOMIC_GE_LT. It's a use after free and could
crash the box.

Lustre-change: https://review.whamcloud.com/36743
Lustre-commit: dd71e74fecf45b81daa27c89c0b8065a58cac5c1

Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Change-Id: I3d63acf2bff543924ca0e74a35d24c507d68f6aa
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Shaun Tancheff <stancheff@cray.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/37066
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdclass/genops.c