Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Dec 2018 00:41:46 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r341747 - stable/12/sys/kern
Message-ID:  <201812090041.wB90fkt5074718@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sun Dec  9 00:41:46 2018
New Revision: 341747
URL: https://svnweb.freebsd.org/changeset/base/341747

Log:
  MFC r341397:
  Correct accuracy of the barrier writes accounting.

Modified:
  stable/12/sys/kern/vfs_bio.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/kern/vfs_bio.c
==============================================================================
--- stable/12/sys/kern/vfs_bio.c	Sat Dec  8 22:12:57 2018	(r341746)
+++ stable/12/sys/kern/vfs_bio.c	Sun Dec  9 00:41:46 2018	(r341747)
@@ -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?201812090041.wB90fkt5074718>