From owner-cvs-all Sat Apr 13 16:19:17 2002 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 0A26137B405; Sat, 13 Apr 2002 16:19:14 -0700 (PDT) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3DNJEf12636; Sat, 13 Apr 2002 16:19:14 -0700 (PDT) (envelope-from jhb) Message-Id: <200204132319.g3DNJEf12636@freefall.freebsd.org> From: John Baldwin Date: Sat, 13 Apr 2002 16:19:13 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/fs/procfs procfs_ctl.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jhb 2002/04/13 16:19:13 PDT Modified files: sys/fs/procfs procfs_ctl.c Log: - Change procfs_control()'s first argument to be a thread pointer instead of a process pointer. - Move the p_candebug() at the start of procfs_control() a bit to make locking feasible. We still perform the access check before doing anything, we just now perform it after acquiring locks. - Don't lock the sched_lock for TRACE_WAIT_P() and when checking to see if p_stat is SSTOP. We lock the process while setting p_stat to SSTOP so locking the process is sufficient to do a read to see if p_stat is SSTOP or not. Revision Changes Path 1.39 +32 -47 src/sys/fs/procfs/procfs_ctl.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message