svn commit: r341397 - head/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Sun Dec 2 12:53:40 UTC 2018
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;
More information about the svn-src-all
mailing list