Date: Wed, 29 May 2002 10:34:28 -0400 From: Bosko Milekic <bmilekic@unixdaemons.com> To: John Baldwin <jhb@freebsd.org> Cc: Perforce Change Reviews <perforce@freebsd.org> Subject: Re: PERFORCE change 12066 for review Message-ID: <20020529103428.A68375@unixdaemons.com> In-Reply-To: <200205291429.g4TETgb19707@freefall.freebsd.org>; from jhb@freebsd.org on Wed, May 29, 2002 at 07:29:42AM -0700 References: <200205291429.g4TETgb19707@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a great change. How soon will we see it in CVS? On Wed, May 29, 2002 at 07:29:42AM -0700, John Baldwin wrote: > http://people.freebsd.org/~peter/p4db/chv.cgi?CH=12066 > > Change 12066 by jhb@jhb_laptop on 2002/05/29 07:28:41 > > Spin w/o holding sched_lock until mtx_lock changes when we are > adaptively spinning. > > Affected files ... > > ... //depot/projects/smpng/sys/kern/kern_mutex.c#34 edit > > Differences ... > > ==== //depot/projects/smpng/sys/kern/kern_mutex.c#34 (text+ko) ==== > > @@ -533,9 +533,11 @@ > if (m != &Giant && owner->td_kse != NULL && > owner->td_kse->ke_oncpu != NOCPU) { > mtx_unlock_spin(&sched_lock); > + while (mtx_owner(m) == owner) { > #ifdef __i386__ > - cpu_pause(); > + cpu_pause(); > #endif > + } > continue; > } > #endif /* SMP && ADAPTIVE_MUTEXES */ > -- Bosko Milekic bmilekic@unixdaemons.com bmilekic@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020529103428.A68375>