Skip to content

Commit 3e46a92

Browse files
mjguzikbrauner
authored andcommitted
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>
1 parent e835884 commit 3e46a92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/open.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1576,7 +1576,7 @@ SYSCALL_DEFINE1(close, unsigned int, fd)
15761576
* We're returning to user space. Don't bother
15771577
* with any delayed fput() cases.
15781578
*/
1579-
__fput_sync(file);
1579+
fput_close_sync(file);
15801580

15811581
if (likely(retval == 0))
15821582
return 0;

0 commit comments

Comments
 (0)