diff options
author | Amir Goldstein <amir73il@gmail.com> | 2024-01-16 14:32:47 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2024-01-24 18:26:03 +0300 |
commit | 082fd1ea1f98e6bb1189213a2404ddd774de3843 (patch) | |
tree | c000bfff67879692051bb885f536a28024547aae /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
parent | 615d300648869c774bd1fe54b4627bb0c20faed4 (diff) | |
download | linux-082fd1ea1f98e6bb1189213a2404ddd774de3843.tar.xz |
fsnotify: optimize the case of no parent watcher
If parent inode is not watching, check for the event in masks of
sb/mount/inode masks early to optimize out most of the code in
__fsnotify_parent() and avoid calling fsnotify().
Jens has reported that this optimization improves BW and IOPS in an
io_uring benchmark by more than 10% and reduces perf reported CPU usage.
before:
+ 4.51% io_uring [kernel.vmlinux] [k] fsnotify
+ 3.67% io_uring [kernel.vmlinux] [k] __fsnotify_parent
after:
+ 2.37% io_uring [kernel.vmlinux] [k] __fsnotify_parent
Reported-and-tested-by: Jens Axboe <axboe@kernel.dk>
Link: https://lore.kernel.org/linux-fsdevel/b45bd8ff-5654-4e67-90a6-aad5e6759e0b@kernel.dk/
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Message-Id: <20240116113247.758848-1-amir73il@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions