Whamcloud - gitweb
LU-15757 llite: check s_root ll_md_blocking_ast() 06/48406/3
authorAlex Zhuravlev <bzzz@whamcloud.com>
Tue, 19 Apr 2022 12:01:14 +0000 (15:01 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 8 Nov 2022 08:54:55 +0000 (08:54 +0000)
commite6dd92e27af98b38ba5bd8e7e818efa82971a145
tree5f4abcc662951c351b21a1d37d2de02c77c117e0
parent4bd14502297b17930e90fe969ea69f7fdbde6128
LU-15757 llite: check s_root ll_md_blocking_ast()

ll_md_blocking_ast() can be called in the context of import
invalidation which in turn caused by umount. this way
ll_md_blocking_ast() and umount can race and ll_md_blocking_ast()
can found sb->s_root NULL which should be checked before
calling into is_root_inode().

Lustre-change: https://review.whamcloud.com/47086/
Lustre-commit: 0095c0d05ca80a2494710e3b4afb1d1e4b5cdcfe

Change-Id: I61c1d29a7de3084ad1dfd0c216cee628418b7038
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48406
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/llite/namei.c