From owner-cvs-all Tue Jan 9 21: 6:57 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2B9F737B401; Tue, 9 Jan 2001 21:06:38 -0800 (PST) Received: (from grog@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0A56cV88788; Tue, 9 Jan 2001 21:06:38 -0800 (PST) (envelope-from grog) Message-Id: <200101100506.f0A56cV88788@freefall.freebsd.org> From: Greg Lehey Date: Tue, 9 Jan 2001 21:06:38 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/vinum vinumlock.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG grog 2001/01/09 21:06:38 PST Modified files: sys/dev/vinum vinumlock.c Log: Remove obsolete functions [un]lockplex and [un]lockvol. Rewrite lockrange and unlockrange. The lock table is now a fixed size, so there is no possibility for race conditions when expanding. The current size (256 locked ranges) should be large enough that it makes no sense to expand it. To do expansion right would require quiescing the plex (requiring at least 256 I/O completions), and the performance implications are horrendous. Add a mutex per plex for accessing the lock table. Based on analysis by: tegge Revision Changes Path 1.20 +62 -137 src/sys/dev/vinum/vinumlock.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message