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)
committerEric Biggers <ebiggers@google.com>
Thu, 16 Mar 2023 05:50:41 +0000 (22:50 -0700)
commita075bacde257f755bea0e53400c9f1cdd1b8e8e6
tree38ddb36f91c06628eb01b3bd2fdd3985135b3b0a
parentf959325e6ac3f499450088b8d9c626d1177be160
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