From owner-cvs-src-old@FreeBSD.ORG Sat Feb 21 11:16:27 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 30F631065675 for ; Sat, 21 Feb 2009 11:16:27 +0000 (UTC) (envelope-from jamie@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 1C8D68FC24 for ; Sat, 21 Feb 2009 11:16:27 +0000 (UTC) (envelope-from jamie@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n1LBGQJf089488 for ; Sat, 21 Feb 2009 11:16:26 GMT (envelope-from jamie@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n1LBGQUG089487 for cvs-src-old@freebsd.org; Sat, 21 Feb 2009 11:16:26 GMT (envelope-from jamie@repoman.freebsd.org) Message-Id: <200902211116.n1LBGQUG089487@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jamie@repoman.freebsd.org using -f From: Jamie Gritton Date: Sat, 21 Feb 2009 11:15:38 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_osd.c src/sys/sys osd.h 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: Sat, 21 Feb 2009 11:16:27 -0000 jamie 2009-02-21 11:15:38 UTC FreeBSD src repository Modified files: sys/kern kern_osd.c sys/sys osd.h Log: SVN rev 188894 on 2009-02-21 11:15:38Z by jamie Add support for methods to the OSD subsystem. Each object type has a predefined set of methods, which are set in osd_register() and called via osd_call(). Currently, no methods are defined, though prison objects will have some in the future. Expand the locking from a single per-type mutex to three different kinds of locks (four if you include the requirement that the container (e.g. prison) be locked when getting/setting data). This clears up one existing issue, as well as others added by the method support. Approved by: bz (mentor) Revision Changes Path 1.2 +162 -65 src/sys/kern/kern_osd.c 1.2 +18 -6 src/sys/sys/osd.h