diff options
author | 2024-08-14 17:36:00 +0800 | |
---|---|---|
committer | 2024-08-29 11:43:12 +0200 | |
commit | ac5cffec53be0b0231b89470a357bd3a5814f599 (patch) | |
tree | bc01f2777592b950dc84062994c5e8ba5a5c16ff /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fuse: cleanup request queuing towards virtiofs (diff) | |
download | linux-rng-ac5cffec53be0b0231b89470a357bd3a5814f599.tar.xz linux-rng-ac5cffec53be0b0231b89470a357bd3a5814f599.zip |
fuse: add fast path for fuse_range_is_writeback
In some cases, the fi->writepages may be empty. And there is no need
to check fi->writepages with spin_lock, which may have an impact on
performance due to lock contention. For example, in scenarios where
multiple readers read the same file without any writers, or where
the page cache is not enabled.
Also remove the outdated comment since commit 6b2fb79963fb ("fuse:
optimize writepages search") has optimize the situation by replacing
list with rb-tree.
Signed-off-by: yangyun <yangyun50@huawei.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions