diff options
author | Christof Schmitt <cs@samba.org> | 2014-01-07 11:55:46 -0700 |
---|---|---|
committer | Christof Schmitt <cs@samba.org> | 2014-01-09 00:04:47 +0100 |
commit | d1dacd62bbff93351763ff339cca13ba8180dd89 (patch) | |
tree | 39e9dd8b8f75f1d92c22605366a30b44e002da5c /python | |
parent | ca931e460460ffe46735f98b31db47220772d566 (diff) | |
download | samba-d1dacd62bbff93351763ff339cca13ba8180dd89.tar.gz |
s3: Avoid oplock break by storing timestamps with gpfs_set_times
The gpfs_set_times API call allows setting timestamps directly in GPFS
without going through the utime() call. Using this API call fixes an
unecessary oplock break when a client sends a SET_FILE_ALLOCATION_INFO
request and no other client has opened the file. The call to utime()
triggers the oplock break through the Linux kernel. Using the
gpfs_set_times call for updating the timestamp avoids the call to
utime() and the oplock break.
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Christof Schmitt <cs@samba.org>
Autobuild-Date(master): Thu Jan 9 00:04:48 CET 2014 on sn-devel-104
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions