Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/dist/uts/common/fs/zfs Add missing dmu_z...



details:   https://anonhg.NetBSD.org/src/rev/a769aa4c9980
branches:  trunk
changeset: 459123:a769aa4c9980
user:      hannken <hannken%NetBSD.org@localhost>
date:      Sat Aug 24 12:59:34 2019 +0000

description:
Add missing dmu_zfetch_fini() when dnode_create() lost the race.

diffstat:

 external/cddl/osnet/dist/uts/common/fs/zfs/dnode.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r df472b469834 -r a769aa4c9980 external/cddl/osnet/dist/uts/common/fs/zfs/dnode.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/dnode.c        Sat Aug 24 12:59:05 2019 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/dnode.c        Sat Aug 24 12:59:34 2019 +0000
@@ -447,6 +447,9 @@
        if (dnh->dnh_dnode != NULL) {
                /* Lost the allocation race. */
                mutex_exit(&os->os_lock);
+#ifdef __NetBSD__
+               dmu_zfetch_fini(&dn->dn_zfetch);
+#endif
                kmem_cache_free(dnode_cache, dn);
                return (dnh->dnh_dnode);
        }



Home | Main Index | Thread Index | Old Index