summaryrefslogtreecommitdiffstats
path: root/sbin/hastd
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2011-10-27 20:10:21 +0000
committerpjd <pjd@FreeBSD.org>2011-10-27 20:10:21 +0000
commit986d3757ae9c0bda34767a62844559c4021b0830 (patch)
treec7247cccc92faf546c720a8589305a2ccb0efa6e /sbin/hastd
parent72922c3d6b1f2bfbe803d9f4436607f17a0fecd1 (diff)
downloadFreeBSD-src-986d3757ae9c0bda34767a62844559c4021b0830.zip
FreeBSD-src-986d3757ae9c0bda34767a62844559c4021b0830.tar.gz
Improve comment so it doesn't suggest race is possible, but that we handle
the race. MFC after: 3 days
Diffstat (limited to 'sbin/hastd')
-rw-r--r--sbin/hastd/primary.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c
index b06afc6..d1177a1 100644
--- a/sbin/hastd/primary.c
+++ b/sbin/hastd/primary.c
@@ -1021,7 +1021,7 @@ remote_close(struct hast_resource *res, int ncomp)
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)) {
OpenPOWER on IntegriCloud