Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jul 2016 02:46:09 +0200
From:      Mateusz Guzik <mjguzik@gmail.com>
To:        Conrad Meyer <cem@freebsd.org>
Cc:        Mateusz Guzik <mjg@freebsd.org>, src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r303563 - head/sys/kern
Message-ID:  <20160731004609.GA9408@dft-labs.eu>
In-Reply-To: <CAG6CVpXmZL3Vm85B5Fg-8MNzJu8E7vjS4OWxxEdZxFEu9CVSKQ@mail.gmail.com>
References:  <201607302223.u6UMNWD7037665@repo.freebsd.org> <CAG6CVpXmZL3Vm85B5Fg-8MNzJu8E7vjS4OWxxEdZxFEu9CVSKQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jul 30, 2016 at 05:44:16PM -0700, Conrad Meyer wrote:
> On Sat, Jul 30, 2016 at 3:23 PM, Mateusz Guzik <mjg@freebsd.org> wrote:
> > Author: mjg
> > Date: Sat Jul 30 22:23:31 2016
> > New Revision: 303563
> > URL: https://svnweb.freebsd.org/changeset/base/303563
> >
> > Log:
> >   sx: increment spin_cnt before cpu_spinwait in xlock
> 
> Looks like it's after cpu_spinwait instead.
> 

Brainfarted the commit message. The actual order as seen is the patch is
what's seen in the file.

> >
> >   The change is a no-op only done for consistency with the rest of the file.
> >
> > Modified:
> >   head/sys/kern/kern_sx.c
> >
> > Modified: head/sys/kern/kern_sx.c
> > ==============================================================================
> > --- head/sys/kern/kern_sx.c     Sat Jul 30 22:21:48 2016        (r303562)
> > +++ head/sys/kern/kern_sx.c     Sat Jul 30 22:23:31 2016        (r303563)
> > @@ -889,10 +889,10 @@ _sx_slock_hard(struct sx *sx, int opts,
> >                                 GIANT_SAVE();
> >                                 while (SX_OWNER(sx->sx_lock) == x &&
> >                                     TD_IS_RUNNING(owner)) {
> > +                                       cpu_spinwait();
> >  #ifdef KDTRACE_HOOKS
> >                                         spin_cnt++;
> >  #endif
> > -                                       cpu_spinwait();
> >                                 }
> >                                 KTR_STATE0(KTR_SCHED, "thread",
> >                                     sched_tdname(curthread), "running");
> >

-- 
Mateusz Guzik <mjguzik gmail.com>



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