The Samba-Bugzilla – Attachment 13876 Details for
Bug 13193
smbd tries to release not leased oplock during oplock II downgrade
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Raw (not git) patch for master.
look (text/plain), 706 bytes, created by
Jeremy Allison
on 2017-12-19 22:19:34 UTC
(
hide
)
Description:
Raw (not git) patch for master.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2017-12-19 22:19:34 UTC
Size:
706 bytes
patch
obsolete
>diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c >index 1b2a87b8d8a..febc1201402 100644 >--- a/source3/smbd/oplock.c >+++ b/source3/smbd/oplock.c >@@ -131,13 +131,14 @@ static void downgrade_file_oplock(files_struct *fsp) > { > struct smbd_server_connection *sconn = fsp->conn->sconn; > struct kernel_oplocks *koplocks = sconn->oplocks.kernel_ops; >+ bool use_kernel = lp_kernel_oplocks(SNUM(fsp->conn)) && koplocks; > > if (!EXCLUSIVE_OPLOCK_TYPE(fsp->oplock_type)) { > DEBUG(0, ("trying to downgrade an already-downgraded oplock!\n")); > return; > } > >- if (koplocks) { >+ if (use_kernel) { > koplocks->ops->release_oplock(koplocks, fsp, LEVEL_II_OPLOCK); > } > fsp->oplock_type = LEVEL_II_OPLOCK;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 13193
:
13876
|
13877
|
13892
|
13893