Source-Changes-HG archive

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

[src/trunk]: src/sys/dev initialize b_interlock properly.



details:   https://anonhg.NetBSD.org/src/rev/dc4a47df9a97
branches:  trunk
changeset: 543331:dc4a47df9a97
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sun Feb 23 08:50:58 2003 +0000

description:
initialize b_interlock properly.
(for ioctl)

diffstat:

 sys/dev/ata/wd.c              |  5 +++--
 sys/dev/scsipi/scsipi_ioctl.c |  5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (52 lines):

diff -r 4b651ac2ec65 -r dc4a47df9a97 sys/dev/ata/wd.c
--- a/sys/dev/ata/wd.c  Sun Feb 23 08:33:13 2003 +0000
+++ b/sys/dev/ata/wd.c  Sun Feb 23 08:50:58 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wd.c,v 1.237 2003/01/27 18:21:29 thorpej Exp $ */
+/*     $NetBSD: wd.c,v 1.238 2003/02/23 08:50:58 yamt Exp $ */
 
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.  All rights reserved.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.237 2003/01/27 18:21:29 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.238 2003/02/23 08:50:58 yamt Exp $");
 
 #ifndef WDCDEBUG
 #define WDCDEBUG
@@ -1454,6 +1454,7 @@
        int s;
 
        wi = malloc(sizeof(struct wd_ioctl), M_TEMP, M_WAITOK|M_ZERO);
+       simple_lock_init(&wi->wi_bp.b_interlock);
        s = splbio();
        LIST_INSERT_HEAD(&wi_head, wi, wi_list);
        splx(s);
diff -r 4b651ac2ec65 -r dc4a47df9a97 sys/dev/scsipi/scsipi_ioctl.c
--- a/sys/dev/scsipi/scsipi_ioctl.c     Sun Feb 23 08:33:13 2003 +0000
+++ b/sys/dev/scsipi/scsipi_ioctl.c     Sun Feb 23 08:50:58 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scsipi_ioctl.c,v 1.43 2002/01/12 16:37:55 tsutsui Exp $        */
+/*     $NetBSD: scsipi_ioctl.c,v 1.44 2003/02/23 08:50:59 yamt Exp $   */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: scsipi_ioctl.c,v 1.43 2002/01/12 16:37:55 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scsipi_ioctl.c,v 1.44 2003/02/23 08:50:59 yamt Exp $");
 
 #include "opt_compat_freebsd.h"
 #include "opt_compat_netbsd.h"
@@ -90,6 +90,7 @@
        int s;
 
        si = malloc(sizeof(struct scsi_ioctl), M_TEMP, M_WAITOK|M_ZERO);
+       simple_lock_init(&si->si_bp.b_interlock);
        s = splbio();
        LIST_INSERT_HEAD(&si_head, si, si_list);
        splx(s);



Home | Main Index | Thread Index | Old Index