From owner-cvs-src-old@FreeBSD.ORG Wed Sep 9 09:34:24 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A97C41065725 for ; Wed, 9 Sep 2009 09:34:24 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 0A6938FC22 for ; Wed, 9 Sep 2009 09:34:22 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n899YLxS018757 for ; Wed, 9 Sep 2009 09:34:21 GMT (envelope-from attilio@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n899YLB0018756 for cvs-src-old@freebsd.org; Wed, 9 Sep 2009 09:34:21 GMT (envelope-from attilio@repoman.freebsd.org) Message-Id: <200909090934.n899YLB0018756@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to attilio@repoman.freebsd.org using -f From: Attilio Rao Date: Wed, 9 Sep 2009 09:34:13 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sys/kern kern_lock.c kern_rwlock.c kern_sx.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Sep 2009 09:34:24 -0000 attilio 2009-09-09 09:34:13 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/kern kern_lock.c kern_rwlock.c kern_sx.c Log: SVN rev 197024 on 2009-09-09 09:34:13Z by attilio Adaptive spinning for locking primitives, in read-mode, have some tuning SYSCTLs which are inappropriate for a daily use of the machine (mostly useful only by a developer which wants to run benchmarks on it). Remove them before the release as long as we do not want to ship with them in. Now that the SYSCTLs are gone, instead than use static storage for some constants, use real numeric constants in order to avoid eventual compiler dumbiness and the risk to share a storage (and then a cache-line) among CPUs when doing adaptive spinning together. Pleasse note that the sys/linker_set.h inclusion in lockmgr and sx lock support could have been gone, but re@ preferred them to be in order to minimize the risk of problems on future merging. Please note that this patch is not a MFC, but an 'edge case' as commit directly to stable/8, which creates a diverging from HEAD. Tested by: Giovanni Trematerra Approved by: re (kib) Revision Changes Path 1.144.2.4 +11 -14 src/sys/kern/kern_lock.c 1.48.2.4 +9 -12 src/sys/kern/kern_rwlock.c 1.67.2.5 +8 -11 src/sys/kern/kern_sx.c