Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/dev/raidframe Pullup 1.15 [oster]:



details:   https://anonhg.NetBSD.org/src/rev/e855ca828ed4
branches:  netbsd-1-5
changeset: 489961:e855ca828ed4
user:      tv <tv%NetBSD.org@localhost>
date:      Fri Oct 20 17:48:15 2000 +0000

description:
Pullup 1.15 [oster]:
Move disk_busy() and disk_unbusy() to more sane locations.  Values
reported by 'systat iostat' and friends are now much more correct for
RAIDframe devices.  Thanks to Andrew Doran for poking me about this,
and for suggestions on and review of the changes.

diffstat:

 sys/dev/raidframe/rf_kintf.h  |   3 ++-
 sys/dev/raidframe/rf_states.c |  10 ++++++++--
 2 files changed, 10 insertions(+), 3 deletions(-)

diffs (39 lines):

diff -r 1a13e9472095 -r e855ca828ed4 sys/dev/raidframe/rf_kintf.h
--- a/sys/dev/raidframe/rf_kintf.h      Fri Oct 20 17:32:45 2000 +0000
+++ b/sys/dev/raidframe/rf_kintf.h      Fri Oct 20 17:48:15 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_kintf.h,v 1.14 2000/06/04 02:05:13 oster Exp $      */
+/*     $NetBSD: rf_kintf.h,v 1.14.2.1 2000/10/20 17:48:15 tv Exp $     */
 /*
  * rf_kintf.h
  *
@@ -54,4 +54,5 @@
 void rf_print_component_label(RF_ComponentLabel_t *);
 void rf_UnconfigureVnodes( RF_Raid_t * );
 void rf_close_component( RF_Raid_t *, struct vnode *, int);
+void rf_disk_unbusy(RF_RaidAccessDesc_t *);
 #endif                         /* _RF__RF_KINTF_H_ */
diff -r 1a13e9472095 -r e855ca828ed4 sys/dev/raidframe/rf_states.c
--- a/sys/dev/raidframe/rf_states.c     Fri Oct 20 17:32:45 2000 +0000
+++ b/sys/dev/raidframe/rf_states.c     Fri Oct 20 17:48:15 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_states.c,v 1.13.4.1 2000/10/16 22:42:48 tv Exp $    */
+/*     $NetBSD: rf_states.c,v 1.13.4.2 2000/10/20 17:48:15 tv Exp $    */
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -201,7 +201,13 @@
         */
        if (desc->async_flag == 0)
                wakeup(desc->bp);
-       
+
+       /*
+        * That's all the IO for this one... unbusy the 'disk'.
+        */
+
+       rf_disk_unbusy(desc);
+
        /* 
         * Wakeup any requests waiting to go.
         */



Home | Main Index | Thread Index | Old Index