svn commit: r356883 - head/sys/kern
Warner Losh
imp at bsdimp.com
Sun Jan 19 17:10:41 UTC 2020
On Sun, Jan 19, 2020, 10:05 AM Mateusz Guzik <mjg at freebsd.org> wrote:
> Author: mjg
> Date: Sun Jan 19 17:05:26 2020
> New Revision: 356883
> URL: https://svnweb.freebsd.org/changeset/base/356883
>
> Log:
> cache: counter_u64_add_protected -> counter_u64_add
>
> Fixes booting on RISC-V where it does happen to not be equivalent.
>
Any reason we can't just have a counter64 API that works the same both
places rather than hiding what looks to my eye to be just that behind
ifdefs in vfs_cache.c?
Warner
Reported by: lwhsu
>
> Modified:
> head/sys/kern/vfs_cache.c
>
> Modified: head/sys/kern/vfs_cache.c
>
> ==============================================================================
> --- head/sys/kern/vfs_cache.c Sun Jan 19 16:24:25 2020 (r356882)
> +++ head/sys/kern/vfs_cache.c Sun Jan 19 17:05:26 2020 (r356883)
> @@ -412,14 +412,14 @@ static void
> cache_numcachehv_inc(void)
> {
>
> - counter_u64_add_protected(numcachehv, 1);
> + counter_u64_add(numcachehv, 1);
> }
>
> static void
> cache_numcachehv_dec(void)
> {
>
> - counter_u64_add_protected(numcachehv, -1);
> + counter_u64_add(numcachehv, -1);
> }
> #else
> static void
>
More information about the svn-src-head
mailing list