profile: Remove syscall_kernel_flock profiling
authorChristof Schmitt <cs@samba.org>
Mon, 20 Sep 2021 20:46:18 +0000 (13:46 -0700)
committerChristof Schmitt <cs@samba.org>
Tue, 21 Sep 2021 18:47:38 +0000 (18:47 +0000)
This no longer calls flock, so it should not be part of the system call
profiling.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/include/smbprofile.h
source3/modules/vfs_gpfs.c

index 1bb429778c4ce2fa3afd517d13b6035438efca29..3ddd4eb6f5d70417ef736e9d3b200add41f40e07 100644 (file)
@@ -78,7 +78,6 @@ struct tevent_context;
        SMBPROFILE_STATS_BASIC(syscall_ftruncate) \
        SMBPROFILE_STATS_BASIC(syscall_fallocate) \
        SMBPROFILE_STATS_BASIC(syscall_fcntl_lock) \
-       SMBPROFILE_STATS_BASIC(syscall_kernel_flock) \
        SMBPROFILE_STATS_BASIC(syscall_fcntl) \
        SMBPROFILE_STATS_BASIC(syscall_linux_setlease) \
        SMBPROFILE_STATS_BASIC(syscall_fcntl_getlock) \
index 0225cdc6e0fbd17a5a7bd73a1825325364367ff6..80273c1029ccc8105b45e3f4e2aa3e99d63ff49f 100644 (file)
@@ -163,8 +163,6 @@ static int vfs_gpfs_kernel_flock(vfs_handle_struct *handle, files_struct *fsp,
        struct gpfs_config_data *config;
        int ret = 0;
 
-       START_PROFILE(syscall_kernel_flock);
-
        SMB_VFS_HANDLE_GET_DATA(handle, config,
                                struct gpfs_config_data,
                                return -1);
@@ -187,8 +185,6 @@ static int vfs_gpfs_kernel_flock(vfs_handle_struct *handle, files_struct *fsp,
 
        ret = set_gpfs_sharemode(fsp, access_mask, share_access);
 
-       END_PROFILE(syscall_kernel_flock);
-
        return ret;
 }