Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Oct 2011 20:10:21 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r226855 - head/sbin/hastd
Message-ID:  <201110272010.p9RKALhH023060@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Thu Oct 27 20:10:21 2011
New Revision: 226855
URL: http://svn.freebsd.org/changeset/base/226855

Log:
  Improve comment so it doesn't suggest race is possible, but that we handle
  the race.
  
  MFC after:	3 days

Modified:
  head/sbin/hastd/primary.c

Modified: head/sbin/hastd/primary.c
==============================================================================
--- head/sbin/hastd/primary.c	Thu Oct 27 20:01:23 2011	(r226854)
+++ head/sbin/hastd/primary.c	Thu Oct 27 20:10:21 2011	(r226855)
@@ -1021,7 +1021,7 @@ remote_close(struct hast_resource *res, 
 
 	rw_wlock(&hio_remote_lock[ncomp]);
 	/*
-	 * A race is possible between dropping rlock and acquiring wlock -
+	 * Check for a race between dropping rlock and acquiring wlock -
 	 * another thread can close connection in-between.
 	 */
 	if (!ISCONNECTED(res, ncomp)) {



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