[CIFS] improve posix semantics of file create
authorSteve French <sfrench@us.ibm.com>
Fri, 20 Feb 2009 04:32:45 +0000 (04:32 +0000)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 11 Mar 2011 16:14:04 +0000 (18:14 +0200)
commit742e53f04a584d5ca048b4a3b4c639df01b68524
tree4cbe26f7ad6293a19cedbec44f79445b38edd905
parent8003baab4a8b5096858a15d362425a097df07d7c
[CIFS] improve posix semantics of file create

Samba server added support for a new posix open/create/mkdir operation
a year or so ago, and we added support to cifs for mkdir to use it,
but had not added the corresponding code to file create.

The following patch helps improve the performance of the cifs create
path (to Samba and servers which support the cifs posix protocol
extensions).  Using Connectathon basic test1, with 2000 files, the
performance improved about 15%, and also helped reduce network traffic
(17% fewer SMBs sent over the wire) due to saving a network round trip
for the SetPathInfo on every file create.

It should also help the semantics (and probably the performance) of
write (e.g. when posix byte range locks are on the file) on file
handles opened with posix create, and adds support for a few flags
which would have to be ignored otherwise.

Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/CHANGES
fs/cifs/dir.c