Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jul 2016 20:08:42 +1000 (EST)
From:      Bruce Evans <brde@optusnet.com.au>
To:        Konstantin Belousov <kib@freebsd.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org,  svn-src-head@freebsd.org
Subject:   Re: svn commit: r302328 - in head/sys: kern sys
Message-ID:  <20160705200552.Y1821@besplex.bde.org>
In-Reply-To: <201607031819.u63IJm79075708@repo.freebsd.org>
References:  <201607031819.u63IJm79075708@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 3 Jul 2016, Konstantin Belousov wrote:

This is mostly a test reply (replying to src-committers has stopped
working for newer commits).

> Log:
>  Provide helper macros to detect 'non-silent SBDRY' state and to
>  calculate appropriate return value for stops.  Simplify the code by
>  using them.
>
>  Fix typo in sig_suspend_threads().  The thread which sleep must be
>  aborted is td2. (*)
>
>  In issignal(), when handling stopping signal for thread in
>  TD_SBDRY_INTR state, do not stop, this is wrong and fires assert.
>  This is yet another place where execution should be forced out of
>  SBDRY-protected region.  For such case, return -1 from issignal() and
>  translate it to corresponding error code in sleepq_catch_signals().
>  Assert that other consumers of cursig() are not affected by the new
>  return value. (*)
>
>  Micro-optimize, mostly VFS and VOP methods, by avoiding calling the
>  functions when SIGDEFERSTOP_NOP non-change is requested. (**)
>
>  Reported and tested by:	pho (*)
>  Requested by:	bde (**)
>  Sponsored by:	The FreeBSD Foundation
>  MFC after:	2 weeks
>  Approved by:	re (gjb)

Thanks, but this is still very slow (even slower than beore the
micro-optimization).

Bruce



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