Date: Sun, 11 Feb 2018 19:54:21 +0000 (UTC) From: Jeff Roberson <jeff@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r329133 - user/jeff/numa/sys/kern Message-ID: <201802111954.w1BJsLVc015927@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jeff Date: Sun Feb 11 19:54:21 2018 New Revision: 329133 URL: https://svnweb.freebsd.org/changeset/base/329133 Log: notbufdflushes should use the counter(9) api, otherwise we're just bumping the pointer. Found by: pho Modified: user/jeff/numa/sys/kern/vfs_bio.c Modified: user/jeff/numa/sys/kern/vfs_bio.c ============================================================================== --- user/jeff/numa/sys/kern/vfs_bio.c Sun Feb 11 19:51:29 2018 (r329132) +++ user/jeff/numa/sys/kern/vfs_bio.c Sun Feb 11 19:54:21 2018 (r329133) @@ -3388,7 +3388,7 @@ flushbufqueues(struct vnode *lvp, int target, int flus } else { bremfree(bp); bwrite(bp); - notbufdflushes++; + counter_u64_add(notbufdflushes, 1); } vn_finished_write(mp); if (unlock)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802111954.w1BJsLVc015927>