Whamcloud - gitweb
EX-6265 llite: allow mmap reads of compressed files
authorPatrick Farrell <pfarrell@whamcloud.com>
Thu, 29 Jun 2023 17:52:01 +0000 (13:52 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 1 Jul 2023 10:05:17 +0000 (10:05 +0000)
commitd0d23b6d0121fb526c39aa39cfffa7e0c4c3a097
tree38c08a5ac5862dbe977030b334323316a1808ae4
parent95df962a922bb29ac7026c9bf9b93593f1f7ec05
EX-6265 llite: allow mmap reads of compressed files

mmap reads of compressed files work, so we should only
block writes.

We cannot block the actual fault operations because that
will cause the application to get a SIGBUS, so we check
the file open mode when we go to create the memory mapping.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I636f398fd247ddcd153f94bf8116440540e8469c
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51506
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Qian Yingjin <qian@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/llite/llite_mmap.c
lustre/tests/multiop.c
lustre/tests/sanity.sh