diff options
| author | Mateusz Guzik <mjguzik@gmail.com> | 2026-08-03 14:51:38 +0200 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-09-17 12:34:39 +0200 |
| commit | 161ce1e692d01ddec0522f24a29535ac59a3afaf (patch) | |
| tree | b08b111d0f0b6b957a2332f4fc164eaf3cea95a0 /tools/lib/python | |
| parent | cee9395acd8043be0644b25c34bfa86623f2b935 (diff) | |
| download | linux-next-161ce1e692d01ddec0522f24a29535ac59a3afaf.tar.gz linux-next-161ce1e692d01ddec0522f24a29535ac59a3afaf.zip | |
fs: avoid spurious dentry ref/unref cycle on open
Opening a file grabs a reference on the terminal dentry in
__legitimize_path(), then another one in do_dentry_open() and finally
drops the initial reference in terminate_walk().
That's 2 modifications which don't need to be there -- do_dentry_open()
can consume the already held reference instead.
When benchmarking on a 20-core vm using will-it-scale to open the same
file read-only, the results are (ops/s):
before: 4043375
after: 5629378 (+39%)
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Link: https://patch.msgid.link/20260803125138.1937674-1-mjguzik@gmail.com
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
