Whamcloud - gitweb
LU-14787 libcfs: Proved an abstraction for AS_EXITING 70/44070/6
authorShaun Tancheff <shaun.tancheff@hpe.com>
Thu, 22 Jul 2021 07:31:30 +0000 (02:31 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 18 Aug 2021 01:59:24 +0000 (01:59 +0000)
commite423a0bd7a4a59be80e2011e62818b2f839fb246
tree886ef83514fb5009bc68adcddc53f624ae855e1c
parent76c71a167b999013ba6ddb4d6a2e37dabd3a1f0c
LU-14787 libcfs: Proved an abstraction for AS_EXITING

Linux kernel v3.14-7405-g91b0abe36a7b added AS_EXITING flag
AS_EXITING flag is set while address_space mapping is exiting.

Provide an abstraction mapping_clear_exiting() to clear
the AS_EXITING flag. This balances the kernel mapping_set_existing()
and is used for older kernels when enum mapping_flags does
not include AS_EXITING.

HPE-bug-id: LUS-9977
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: Ib3101b7e3eb8a7fcfd0012ac27367f1e65537f5d
Reviewed-on: https://review.whamcloud.com/44070
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: Maloo <maloo@whamcloud.com>
libcfs/autoconf/lustre-libcfs.m4
libcfs/include/libcfs/linux/linux-fs.h
lustre/llite/vvp_object.c