diff options
author | Mateusz Guzik <mjguzik@gmail.com> | 2025-03-17 17:07:07 +0100 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2025-03-18 15:34:27 +0100 |
commit | eb7e453a83007d019d718c6b3666a1c082b676b0 (patch) | |
tree | 282367d2ae1a0cdf5d825fc9714d94c54677100e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 008a746a01e221b05932fd4561233ef35fa791cc (diff) |
fs: drop the lock trip around I_NEW wake up in evict()
The unhashed state check in __wait_on_freeing_inode() performed with
->i_lock held against remove_hash_inode() also holding the lock makes
another lock acquire in evict() completely spurious -- all potential
sleepers already dropped the lock before remove_hash_inode() acquired
it or they found the inode to be unhashed and aborted.
Note there is no trickery here: the usual cost of both sides taking
locks is still being paid, it just stops being paid twice.
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Link: https://lore.kernel.org/r/20250317160707.1694135-1-mjguzik@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions