svn commit: r341748 - stable/11/sys/kern

Konstantin Belousov kib at FreeBSD.org
Sun Dec 9 00:42:57 UTC 2018


Author: kib
Date: Sun Dec  9 00:42:56 2018
New Revision: 341748
URL: https://svnweb.freebsd.org/changeset/base/341748

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

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

Modified: stable/11/sys/kern/vfs_bio.c
==============================================================================
--- stable/11/sys/kern/vfs_bio.c	Sun Dec  9 00:41:46 2018	(r341747)
+++ stable/11/sys/kern/vfs_bio.c	Sun Dec  9 00:42:56 2018	(r341748)
@@ -1933,7 +1933,7 @@ bufwrite(struct buf *bp)
 	}
 
 	if (bp->b_flags & B_BARRIER)
-		barrierwrites++;
+		atomic_add_long(&barrierwrites, 1);
 
 	oldflags = bp->b_flags;
 


More information about the svn-src-stable mailing list