smbd: Pull mtime handling into open_file_ntcreate
authorVolker Lendecke <vl@samba.org>
Fri, 22 Nov 2013 16:24:42 +0000 (16:24 +0000)
committerJeremy Allison <jra@samba.org>
Fri, 22 Nov 2013 23:40:49 +0000 (00:40 +0100)
commita793ac016db95290470515d89c187365bfcb4f18
tree54143fc0e151b1a16ec11ca7d27480363260844d
parent4e344aba4e66e2e4f59f407f305072bfbb82dc7d
smbd: Pull mtime handling into open_file_ntcreate

This is a performance improvement for heavily contended files, in
particular in a cluster. The separate call to get_file_infos makes us
pull the locking.tdb record twice per open. For a contended file this
can be a performance penalty, this gets the # of record accesses for
the open/close cycle down from 3 to 2.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Nov 23 00:40:49 CET 2013 on sn-devel-104
source3/smbd/nttrans.c
source3/smbd/open.c
source3/smbd/reply.c
source3/smbd/smb2_create.c