diff options
author | Mateusz Guzik <mjguzik@gmail.com> | 2024-08-06 16:36:07 +0300 |
---|---|---|
committer | Mimi Zohar <zohar@linux.ibm.com> | 2024-10-10 05:49:40 +0300 |
commit | 699ae6241920b0fa837fa57e61f7d5b0e2e65b58 (patch) | |
tree | b99ff2c7fe9901af26c9381c16689731432170e6 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 923168a0631bc42fffd55087b337b1b6c54dcff5 (diff) | |
download | linux-699ae6241920b0fa837fa57e61f7d5b0e2e65b58.tar.xz |
evm: stop avoidably reading i_writecount in evm_file_release
The EVM_NEW_FILE flag is unset if the file already existed at the time
of open and this can be checked without looking at i_writecount.
Not accessing it reduces traffic on the cacheline during parallel open
of the same file and drop the evm_file_release routine from second place
to bottom of the profile.
Fixes: 75a323e604fc ("evm: Make it independent from 'integrity' LSM")
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Reviewed-by: Roberto Sassu <roberto.sassu@huawei.com>
Cc: stable@vger.kernel.org # 6.9+
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions