]> git.ipfire.org Git - thirdparty/samba.git/commit
r23457: After Jeremy's ack:
authorVolker Lendecke <vlendec@samba.org>
Wed, 13 Jun 2007 09:55:13 +0000 (09:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:17 +0000 (12:23 -0500)
commit062a411c12e032e14252cbfb261fd5b069de2bb8
treeade9110e29f3b91c0602f52aa62c99c15262a809
parent28bc066aa843d97741b6507f4936516ff39b3d48
r23457: After Jeremy's ack:

The attached patch removes a little race condition for
people with real kernel oplock support, and reduces some
code paths. It changes reply_unlink to open_file_ntcreate,
set_delete_on_close and close_file.

The race condition happens if we break the oplock in
can_delete via open_file_ntcreate, we close the file,
someone else gets a batch oplock and we try to unlink.

It reduces code paths by calling SMB_VFS_UNLINK in 2 fewer
places.
(This used to be commit 0342ce7057045a362134281bcc7030111276dea0)
source3/smbd/reply.c