svn commit: r341747 - stable/12/sys/kern

Konstantin Belousov kib at FreeBSD.org
Sun Dec 9 00:41:47 UTC 2018


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;
 


More information about the svn-src-stable-12 mailing list