Whamcloud - gitweb
LU-13942 obd: check if sbi->ll_md_exp is initialized 12/39812/6
authorArtem Blagodarenko <artem.blagodarenko@hpe.com>
Fri, 21 Aug 2020 17:43:38 +0000 (13:43 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 2 Jun 2021 17:47:41 +0000 (17:47 +0000)
commit1de8c3739d6bac76b63a0e59a8aadf4ce491f88a
tree6f231356a5c9ace7dccb9c2db6cb3ae3f7f4bb0d
parentc0f8f6b5001ec1a58493cde790da50dd2876030c
LU-13942 obd: check if sbi->ll_md_exp is initialized

Null reference at the start of obd_statfs() function is possible
because of ll_fill_super vs lctl race.

ll_md_exp is initialized in ll_fill_super()->
client_common_fill_super(), but if mount process stucks
in lustre_process_log() it doesn't reach client_common_fill_super().

Change-Id: Ife72a62ba42573e2a9c6d244e36cde738b70c15a
hpe-bug-id: LUS-9150
Signed-off-by: Artem Blagodarenko <artem.blagodarenko@hpe.com>
Reviewed-on: https://es-gerrit.dev.cray.com/157732
Reviewed-by: Alexander Zarochentsev <c17826@cray.com>
Tested-by: Alexander Lezhoev <c17454@cray.com>
Reviewed-by: Andriy Skulysh <c17819@cray.com>
Reviewed-on: https://review.whamcloud.com/39812
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/include/obd_class.h