Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Dec 2018 12:53:39 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r341397 - head/sys/kern
Message-ID:  <201812021253.wB2CrdWe095258@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sun Dec  2 12:53:39 2018
New Revision: 341397
URL: https://svnweb.freebsd.org/changeset/base/341397

Log:
  Correct accuracy of the barrier writes accounting.
  
  Discussed with:	mckusick
  MFC after:	1 week
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/kern/vfs_bio.c

Modified: head/sys/kern/vfs_bio.c
==============================================================================
--- head/sys/kern/vfs_bio.c	Sun Dec  2 12:51:49 2018	(r341396)
+++ head/sys/kern/vfs_bio.c	Sun Dec  2 12:53:39 2018	(r341397)
@@ -2231,7 +2231,7 @@ bufwrite(struct buf *bp)
 	}
 
 	if (bp->b_flags & B_BARRIER)
-		barrierwrites++;
+		atomic_add_long(&barrierwrites, 1);
 
 	oldflags = bp->b_flags;
 



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