s3: Remove share mode handling before we open the file
authorVolker Lendecke <vl@samba.org>
Thu, 13 Sep 2012 13:40:17 +0000 (15:40 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 29 Sep 2012 15:42:49 +0000 (08:42 -0700)
commit173e808ed48a67ffbafd77a5e9d54ba6b8d3e6e8
tree63b82141a608bc5ebdde2134f42f632dc36af94c
parent590d3138be0293fbe9cb575261eb5319351d1e91
s3: Remove share mode handling before we open the file

This is a significant behaviour change: We do not open the file under
the share mode lock anymore. This might lead to more open calls in case
of oplock breaks or sharing violations, but those are slow error paths
and as such might be not too performance sensitive. The benefit of this
patch is a significant reduction of complexity of open_file_ntcreate()
source3/smbd/open.c