Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Apr 2014 18:22:03 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r264264 - head/sys/cam/ctl
Message-ID:  <201404081822.s38IM3p2048366@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Tue Apr  8 18:22:03 2014
New Revision: 264264
URL: http://svnweb.freebsd.org/changeset/base/264264

Log:
  Wakeup only one thread of added in r263978i at a time.
  
  This slightly reduces lock congestion between threads.
  
  Submitted by:	trasz

Modified:
  head/sys/cam/ctl/ctl.c

Modified: head/sys/cam/ctl/ctl.c
==============================================================================
--- head/sys/cam/ctl/ctl.c	Tue Apr  8 18:21:38 2014	(r264263)
+++ head/sys/cam/ctl/ctl.c	Tue Apr  8 18:22:03 2014	(r264264)
@@ -13065,7 +13065,7 @@ ctl_wakeup_thread()
 
 	softc = control_softc;
 
-	wakeup(softc);
+	wakeup_one(softc);
 }
 
 /* Initialization and failover */



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