From owner-cvs-src@FreeBSD.ORG Sat Jun 9 21:48:45 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 15B5016A41F; Sat, 9 Jun 2007 21:48:45 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 0600113C45B; Sat, 9 Jun 2007 21:48:45 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l59LmijS034860; Sat, 9 Jun 2007 21:48:44 GMT (envelope-from attilio@repoman.freebsd.org) Received: (from attilio@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l59Lmie6034856; Sat, 9 Jun 2007 21:48:44 GMT (envelope-from attilio) Message-Id: <200706092148.l59Lmie6034856@repoman.freebsd.org> From: Attilio Rao Date: Sat, 9 Jun 2007 21:48:44 +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/compat/linux linux_misc.c src/sys/compat/svr4 svr4_misc.c src/sys/fs/procfs procfs_status.c src/sys/kern kern_acct.c kern_exit.c kern_proc.c kern_resource.c kern_time.c src/sys/sys resourcevar.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: Sat, 09 Jun 2007 21:48:45 -0000 attilio 2007-06-09 21:48:44 UTC FreeBSD src repository Modified files: sys/compat/linux linux_misc.c sys/compat/svr4 svr4_misc.c sys/fs/procfs procfs_status.c sys/kern kern_acct.c kern_exit.c kern_proc.c kern_resource.c kern_time.c sys/sys resourcevar.h Log: rufetch and calcru sometimes should be called atomically together. This patch fixes places where they should be called atomically changing their locking requirements (both assume per-proc spinlock held) and introducing rufetchcalc which wrappers both calls to be performed in atomic way. Reviewed by: jeff Approved by: jeff (mentor) Revision Changes Path 1.212 +2 -0 src/sys/compat/linux/linux_misc.c 1.96 +8 -0 src/sys/compat/svr4/svr4_misc.c 1.61 +2 -1 src/sys/fs/procfs/procfs_status.c 1.93 +1 -2 src/sys/kern/kern_acct.c 1.303 +4 -6 src/sys/kern/kern_exit.c 1.250 +2 -0 src/sys/kern/kern_proc.c 1.176 +21 -13 src/sys/kern/kern_resource.c 1.142 +4 -0 src/sys/kern/kern_time.c 1.52 +3 -1 src/sys/sys/resourcevar.h