Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jul 2015 22:21:26 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r285294 - head/sys/sys
Message-ID:  <201507082221.t68MLQaF086453@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Wed Jul  8 22:21:25 2015
New Revision: 285294
URL: https://svnweb.freebsd.org/changeset/base/285294

Log:
  seq: use seq_consistent_nomb in seq_consistent
  
  Constify seqp argument for seq_consistent_nomb.
  
  No functional changes.

Modified:
  head/sys/sys/seq.h

Modified: head/sys/sys/seq.h
==============================================================================
--- head/sys/sys/seq.h	Wed Jul  8 22:09:47 2015	(r285293)
+++ head/sys/sys/seq.h	Wed Jul  8 22:21:25 2015	(r285294)
@@ -111,18 +111,18 @@ seq_read(const seq_t *seqp)
 }
 
 static __inline seq_t
-seq_consistent(const seq_t *seqp, seq_t oldseq)
+seq_consistent_nomb(const seq_t *seqp, seq_t oldseq)
 {
 
-	atomic_thread_fence_acq();
 	return (*seqp == oldseq);
 }
 
 static __inline seq_t
-seq_consistent_nomb(seq_t *seqp, seq_t oldseq)
+seq_consistent(const seq_t *seqp, seq_t oldseq)
 {
 
-	return (*seqp == oldseq);
+	atomic_thread_fence_acq();
+	return (seq_consistent_nomb(seqp, oldseq));
 }
 
 #endif	/* _KERNEL */



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