svn commit: r226855 - head/sbin/hastd

Pawel Jakub Dawidek pjd at FreeBSD.org
Thu Oct 27 20:10:21 UTC 2011


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)) {


More information about the svn-src-head mailing list