From owner-cvs-all@FreeBSD.ORG Mon Mar 15 10:48:28 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA26E16A4CE; Mon, 15 Mar 2004 10:48:28 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C9B543D41; Mon, 15 Mar 2004 10:48:28 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i2FImSGe047107; Mon, 15 Mar 2004 10:48:28 -0800 (PST) (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i2FImSFe047106; Mon, 15 Mar 2004 10:48:28 -0800 (PST) (envelope-from jhb) Message-Id: <200403151848.i2FImSFe047106@repoman.freebsd.org> From: John Baldwin Date: Mon, 15 Mar 2004 10:48:28 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern sys_process.c syscalls.master X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2004 18:48:28 -0000 jhb 2004/03/15 10:48:28 PST FreeBSD src repository Modified files: sys/kern sys_process.c syscalls.master Log: Drop the proc lock around calls to the MD functions ptrace_single_step(), ptrace_set_pc(), and cpu_ptrace() so that those functions are free to acquire Giant, sleep, etc. We already do a PHOLD/PRELE around them so that it is safe to sleep inside of these routines if necessary. This allows ptrace() to be marked MP safe again as it no longer triggers lock order reversals on Alpha. Tested by: wilko Revision Changes Path 1.118 +11 -6 src/sys/kern/sys_process.c 1.168 +1 -1 src/sys/kern/syscalls.master