Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2001 07:35:23 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/i386/i386 vm_machdep.c sys_machdep.c
Message-ID:  <200105301435.f4UEZNm75635@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105301435.f4UEZNm75635>