summaryrefslogtreecommitdiff
path: root/fs/open.c
diff options
context:
space:
mode:
authorMateusz Guzik <mjguzik@gmail.com>2025-03-05 13:36:42 +0100
committerChristian Brauner <brauner@kernel.org>2025-03-05 18:31:23 +0100
commit3e46a92a27c2927fcef996ba06cbe299da629c28 (patch)
treed0cd5b77da9ff8a40676eac145c839d5bb4d13e9 /fs/open.c
parente83588458f656417d9b7ac45baf1c7b45790059b (diff)
fs: use fput_close_sync() in close()
This bumps open+close rate by 1% on Sapphire Rapids by eliding one atomic. It would be higher if it was not for several other slowdowns of the same nature. Signed-off-by: Mateusz Guzik <mjguzik@gmail.com> Link: https://lore.kernel.org/r/20250305123644.554845-3-mjguzik@gmail.com Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/open.c')
-rw-r--r--fs/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/open.c b/fs/open.c
index a8a5f843e3cf..47615d0e1d9c 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -1576,7 +1576,7 @@ SYSCALL_DEFINE1(close, unsigned int, fd)
* We're returning to user space. Don't bother
* with any delayed fput() cases.
*/
- __fput_sync(file);
+ fput_close_sync(file);
if (likely(retval == 0))
return 0;