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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent e835884 commit 3e46a92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)