]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fsverity: don't drop pagecache at end of FS_IOC_ENABLE_VERITY
authorEric Biggers <ebiggers@google.com>
Tue, 14 Mar 2023 23:31:32 +0000 (16:31 -0700)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 24 Mar 2023 14:25:31 +0000 (10:25 -0400)
commit29f880586b2821cfdce9aedd842081cf6a9d825d
treeaac3d7899f7a77df2aa6c3f8504cedab3ab6d9a2
parentb922788a50b952237302cee2bad2a7d1bbb2e3cc
fsverity: don't drop pagecache at end of FS_IOC_ENABLE_VERITY

The full pagecache drop at the end of FS_IOC_ENABLE_VERITY is causing
performance problems and is hindering adoption of fsverity.  It was
intended to solve a race condition where unverified pages might be left
in the pagecache.  But actually it doesn't solve it fully.

Since the incomplete solution for this race condition has too much
performance impact for it to be worth it, let's remove it for now.

Fixes: 3fda4c617e84 ("fs-verity: implement FS_IOC_ENABLE_VERITY ioctl")
Cc: stable@vger.kernel.org
Reviewed-by: Victor Hsieh <victorhsieh@google.com>
Link: https://lore.kernel.org/r/20230314235332.50270-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
fs/verity/enable.c