Whamcloud - gitweb
LU-13783 libcfs: switch from ->mmap_sem to mmap_lock() 88/40288/5
authorMr NeilBrown <neilb@suse.de>
Fri, 16 Oct 2020 06:18:29 +0000 (17:18 +1100)
committerOleg Drokin <green@whamcloud.com>
Fri, 26 Feb 2021 21:05:57 +0000 (21:05 +0000)
commit5309e108582c692f3b60705818fddc4a3b3b1345
tree6e0d93c2e06ea86e6885b12bb1701d94fe4dbcbf
parente520b6a7fa6b6dd3f703dc8c6918a3699b3d9517
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.

Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I4ce3959f9e93eae10a7b7db03e2b0a1525723138
Reviewed-on: https://review.whamcloud.com/40288
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.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