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;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"