Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Mar 2008 07:35:14 +0000 (UTC)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern subr_sleepqueue.c
Message-ID:  <200803190735.m2J7ZEhO000502@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jeff        2008-03-19 07:35:14 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             subr_sleepqueue.c 
  Log:
   - At the top of sleepq_catch_signals() lock the thread and check TDF_NEEDSIGCHK
     before doing the very expensive cursig() and related locking.  NEEDSIGCHK
     is updated whenever our signal mask change or when a signal is delivered and
     should be sufficient to avoid the more expensive tests.  This eliminates
     another source of PROC_LOCK contention in multithreaded programs.
  
  Revision  Changes    Path
  1.50      +12 -4     src/sys/kern/subr_sleepqueue.c



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