Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/xen/xen SLIST_INIT() xbdi->xbdi_va_free just for cl...



details:   https://anonhg.NetBSD.org/src/rev/30ffc4afc66a
branches:  trunk
changeset: 1009302:30ffc4afc66a
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Apr 19 20:53:20 2020 +0000

description:
SLIST_INIT() xbdi->xbdi_va_free just for clarity

diffstat:

 sys/arch/xen/xen/xbdback_xenbus.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 873694d9cffc -r 30ffc4afc66a sys/arch/xen/xen/xbdback_xenbus.c
--- a/sys/arch/xen/xen/xbdback_xenbus.c Sun Apr 19 20:47:03 2020 +0000
+++ b/sys/arch/xen/xen/xbdback_xenbus.c Sun Apr 19 20:53:20 2020 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: xbdback_xenbus.c,v 1.79 2020/04/19 18:47:40 jdolecek Exp $      */
+/*      $NetBSD: xbdback_xenbus.c,v 1.80 2020/04/19 20:53:20 jdolecek Exp $      */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xbdback_xenbus.c,v 1.79 2020/04/19 18:47:40 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xbdback_xenbus.c,v 1.80 2020/04/19 20:53:20 jdolecek Exp $");
 
 #include <sys/atomic.h>
 #include <sys/buf.h>
@@ -449,6 +449,7 @@
        xbusd->xbusd_otherend_changed = xbdback_frontend_changed;
        xbdi->xbdi_xbusd = xbusd;
 
+       SLIST_INIT(&xbdi->xbdi_va_free);
        for (i = 0; i < BLKIF_RING_SIZE; i++) {
                xbdi->xbdi_va[i].xv_vaddr = uvm_km_alloc(kernel_map,
                    VBD_VA_SIZE, 0, UVM_KMF_VAONLY|UVM_KMF_WAITVA);



Home | Main Index | Thread Index | Old Index