summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-07-18 01:29:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:12 -0500
commit1cd8d56fdab18a0bcedffba6476f8208d2185040 (patch)
treef449d0c908d9f70116d987fb2d3cbfdce7cd64c6 /source3/smbd
parent38af904c314396091de1062ec19591326abddec6 (diff)
downloadsamba-1cd8d56fdab18a0bcedffba6476f8208d2185040.tar.gz
samba-1cd8d56fdab18a0bcedffba6476f8208d2185040.tar.bz2
samba-1cd8d56fdab18a0bcedffba6476f8208d2185040.zip
r17108: Make the default timeout parameter for lock waiting
be lp_lock_spin(). lock spin count is no longer used. I'll update the man pages. Jeremy. (This used to be commit 0451a170c9be88399202abd225af35ddc45023f0)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index f1ac098e7d..edaf5d8062 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -5383,8 +5383,8 @@ int reply_lockingX(connection_struct *conn, char *inbuf, char *outbuf,
if (br_lck && blocking_lock && ERROR_WAS_LOCK_DENIED(status)) {
/* Windows internal resolution for blocking locks seems
to be about 200ms... Don't wait for less than that. JRA. */
- if (lock_timeout != -1 && lock_timeout < WINDOWS_MINIMUM_LOCK_TIMEOUT_MS) {
- lock_timeout = WINDOWS_MINIMUM_LOCK_TIMEOUT_MS;
+ if (lock_timeout != -1 && lock_timeout < lp_lock_spin_time()) {
+ lock_timeout = lp_lock_spin_time();
}
defer_lock = True;
}
@@ -5397,7 +5397,7 @@ int reply_lockingX(connection_struct *conn, char *inbuf, char *outbuf,
if (br_lck && lp_blocking_locks(SNUM(conn)) && !blocking_lock &&
NT_STATUS_EQUAL((status), NT_STATUS_FILE_LOCK_CONFLICT)) {
defer_lock = True;
- lock_timeout = WINDOWS_MINIMUM_LOCK_TIMEOUT_MS;
+ lock_timeout = lp_lock_spin_time();
}
if (br_lck && defer_lock) {