From owner-cvs-all Wed May 30 7:35:29 2001 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 43EDE37B42C; Wed, 30 May 2001 07:35:23 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4UEZNm75635; Wed, 30 May 2001 07:35:23 -0700 (PDT) (envelope-from jhb) Message-Id: <200105301435.f4UEZNm75635@freefall.freebsd.org> From: John Baldwin Date: Wed, 30 May 2001 07:35:23 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/i386/i386 vm_machdep.c sys_machdep.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 2001/05/30 07:35:23 PDT Modified files: sys/i386/i386 vm_machdep.c sys_machdep.c Log: We can't grab the sched_lock in set_user_ldt() because when it is called from cpu_switch(), curproc has been changed, but the sched_lock owner will not be updated until we return to mi_switch(), thus we deadlock against ourselves. As a workaround, push the acquire and release of sched_lock out to the callers of set_user_ldt(). Note that we can't use a mtx_assert() in set_user_ldt for the same reason. Sleuting by: tmm Tested by: tmm, dougb Revision Changes Path 1.161 +4 -2 src/sys/i386/i386/vm_machdep.c 1.58 +23 -6 src/sys/i386/i386/sys_machdep.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message