Fix for interesting resource constraint condition. When all opens are
commit4430995df3a1a95ff28fd20a4886c5ce31fe0191
authorJeremy Allison <jra@samba.org>
Thu, 30 Jan 2003 01:42:26 +0000 (30 01:42 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 30 Jan 2003 01:42:26 +0000 (30 01:42 +0000)
treec670ebdfbe6848426281f5ba5dd13f81c42842ec
parent7fcbf62562b67d3ef568e765f8506a3b76151f8f
Fix for interesting resource constraint condition. When all opens are
level 2 and a request for open with no oplock is received then the
smbd should send *synchronous* break messages, not asynchronous,
otherwise it spins very rapidly, releasing the lock, sending the
'break to none' messages and then re-acquiring the lock before
any other process has a chance to get the lock and remove it's own
oplock (at least on linux).
Jeremy.
source/include/proto.h
source/include/smb.h
source/smbd/open.c
source/smbd/oplock.c