Date: Sat, 9 Jun 2007 21:48:44 +0000 (UTC) From: Attilio Rao <attilio@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org 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 Message-ID: <200706092148.l59Lmie6034856@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706092148.l59Lmie6034856>