mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
3c10d06524
The second r/o opener of a file is supposed to get a level2 oplock. The first opener due to the protection in process_oplock_break_message() has been forced to break to no oplock. The second opener according to locking.tdb gets a level2 oplock. Further down in open_file_ntcreate we try to set this level2 oplock in the kernel, and the non-clustered Linux kernel disallows this. The rules for the kernel leases are a bit baroque, but the attempt to do the SETLEASE correctly fails and we end up with no oplock for any client. In the clustered case however the linux kernel on the second opening node has not seen the open fd of the first node, it is only the cluster fs that has this information. If the cluster fs does not have the very same notion of leases as the local kernel has, we can end up with a WRLCK style kernel lease for the second opener where locking.tdb only indicates a level2 oplock. Getting a kernel oplock break signal with just a level2 oplock in locking.tdb is something smbd is not prepared for. For example after sending out the break in response to the kernel signal we set a timeout, waiting for a reply. More work needs to be done to make level2 kernel oplocks real for us. This patch addresses a real problem we have right now without them. |
||
---|---|---|
.. | ||
auth | ||
client | ||
exports | ||
groupdb | ||
include | ||
iniparser | ||
iniparser_build | ||
intl | ||
lib | ||
libaddns | ||
libads | ||
libgpo | ||
libnet | ||
librpc | ||
libsmb | ||
locale/pam_winbind | ||
locking | ||
lua-5.1.4 | ||
m4 | ||
modules | ||
nmbd | ||
pam_smbpass | ||
param | ||
passdb | ||
pkgconfig | ||
po | ||
printing | ||
profile | ||
registry | ||
rpc_client | ||
rpc_parse | ||
rpc_server | ||
rpcclient | ||
script | ||
selftest | ||
services | ||
smbd | ||
stf | ||
tests | ||
torture | ||
utils | ||
web | ||
winbindd | ||
.dmallocrc | ||
.indent.pro | ||
autogen.sh | ||
change-log | ||
config.guess | ||
config.sub | ||
configure.developer | ||
configure.in | ||
Doxyfile | ||
dynconfig.c | ||
install-sh | ||
localedir.c | ||
mainpage.dox | ||
Makefile.in | ||
samba4-templates.mk | ||
samba4.m4 | ||
samba4.mk | ||
smbadduser.in | ||
VERSION |