summaryrefslogtreecommitdiffstats
path: root/source3/modules
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-04-29 16:50:15 -0700
committerJeremy Allison <jra@samba.org>2010-04-29 16:50:15 -0700
commitebf6340bb568f279fc8b94856e01de473bd08575 (patch)
treebe6328d01153660b2221161209d42fabae0e4178 /source3/modules
parentf2ccff806a5118ff1ff8a24aa85f56be61906d3a (diff)
downloadsamba-ebf6340bb568f279fc8b94856e01de473bd08575.tar.gz
samba-ebf6340bb568f279fc8b94856e01de473bd08575.tar.xz
samba-ebf6340bb568f279fc8b94856e01de473bd08575.zip
Move the global blocking lock records into the smb1 state.
Jeremy
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/onefs_cbrl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/modules/onefs_cbrl.c b/source3/modules/onefs_cbrl.c
index f7cb26ccd0e..35dc4d2ed03 100644
--- a/source3/modules/onefs_cbrl.c
+++ b/source3/modules/onefs_cbrl.c
@@ -28,8 +28,6 @@
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_LOCKING
-extern struct blocking_lock_record *blocking_lock_queue;
-
static uint64_t onefs_get_new_id(void) {
static uint64_t id = 0;
@@ -84,6 +82,7 @@ static char *onefs_cbrl_blr_state_str(const struct blocking_lock_record *blr)
static void onefs_cbrl_enumerate_blq(const char *fn)
{
+ struct smbd_server_connection *sconn = smbd_server_conn;
struct blocking_lock_record *blr;
if (DEBUGLVL(10))
@@ -91,18 +90,19 @@ static void onefs_cbrl_enumerate_blq(const char *fn)
DEBUG(10, ("CBRL BLR records (%s):\n", fn));
- for (blr = blocking_lock_queue; blr; blr = blr->next)
+ for (blr = sconn->smb1.locks.blocking_lock_queue; blr; blr = blr->next)
DEBUGADD(10, ("%s\n", onefs_cbrl_blr_state_str(blr)));
}
static struct blocking_lock_record *onefs_cbrl_find_blr(uint64_t id)
{
+ struct smbd_server_connection *sconn = smbd_server_conn;
struct blocking_lock_record *blr;
struct onefs_cbrl_blr_state *bs;
onefs_cbrl_enumerate_blq("onefs_cbrl_find_blr");
- for (blr = blocking_lock_queue; blr; blr = blr->next) {
+ for (blr = sconn->smb1.locks.blocking_lock_queue; blr; blr = blr->next) {
bs = (struct onefs_cbrl_blr_state *)blr->blr_private;
/* We don't control all of the BLRs on the BLQ. */