Whamcloud - gitweb
LU-13783 libcfs: switch from ->mmap_sem to mmap_lock()
authorMr NeilBrown <neilb@suse.de>
Tue, 11 May 2021 06:13:38 +0000 (23:13 -0700)
committerLi Xi <lixi@ddn.com>
Tue, 18 May 2021 01:46:56 +0000 (01:46 +0000)
commit542fcc1b5e8883ab68949a3420dd06d2d1462b1c
treedc42cf18a0bb4b441e031dfdf5a5195691966a59
parent5ad1dd39e906298427f41e4b816b857215a3e9bb
LU-13783 libcfs: switch from ->mmap_sem to mmap_lock()

In Linux 5.8, ->mmap_sem is gone and the preferred interface
for locking the mmap is to suite of mmap*lock() functions.

So provide those functions when not available, and use them
as needed in Lustre.

Lustre-change: https://review.whamcloud.com/40288
Lustre-commit: 5309e108582c692f3b60705818fddc4a3b3b1345

Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I4ce3959f9e93eae10a7b7db03e2b0a1525723138
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/43643
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
libcfs/autoconf/lustre-libcfs.m4
libcfs/include/libcfs/linux/linux-mem.h
libcfs/libcfs/linux/linux-curproc.c
lustre/llite/llite_internal.h
lustre/llite/llite_mmap.c
lustre/llite/pcc.c
lustre/llite/rw26.c
lustre/llite/vvp_io.c