From owner-cvs-src@FreeBSD.ORG Sun May 25 14:57:44 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 39B8F106564A; Sun, 25 May 2008 14:57:44 +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 10A0B8FC16; Sun, 25 May 2008 14:57:44 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m4PEvhDw095209; Sun, 25 May 2008 14:57:43 GMT (envelope-from attilio@repoman.freebsd.org) Received: (from attilio@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m4PEvhUA095208; Sun, 25 May 2008 14:57:43 GMT (envelope-from attilio) Message-Id: <200805251457.m4PEvhUA095208@repoman.freebsd.org> From: Attilio Rao Date: Sun, 25 May 2008 14:57:43 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/kern kern_descrip.c src/sys/sys file.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 May 2008 14:57:44 -0000 attilio 2008-05-25 14:57:43 UTC FreeBSD src repository Modified files: sys/kern kern_descrip.c sys/sys file.h Log: Replace direct atomic operation for the file refcount witht the refcount interface. It also introduces the correct usage of memory barriers, as sometimes fdrop() and fhold() are used with shared locks, which don't use any release barrier. Revision Changes Path 1.333 +2 -2 src/sys/kern/kern_descrip.c 1.78 +5 -3 src/sys/sys/file.h