Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/dev/raidframe pull up rev 1.7 from trunk (requested...



details:   https://anonhg.NetBSD.org/src/rev/cded4d1d1a65
branches:  netbsd-1-4
changeset: 469489:cded4d1d1a65
user:      cgd <cgd%NetBSD.org@localhost>
date:      Sun Sep 26 02:14:27 1999 +0000

description:
pull up rev 1.7 from trunk (requested by oster):
  Add a more reasonable throttling mechanism to the RAIDframe code.
  Increases write performance, and helps prevent the I/O routines from
  using too much kernel memory.

diffstat:

 sys/dev/raidframe/rf_states.c |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 01ea511616c0 -r cded4d1d1a65 sys/dev/raidframe/rf_states.c
--- a/sys/dev/raidframe/rf_states.c     Sun Sep 26 02:14:21 1999 +0000
+++ b/sys/dev/raidframe/rf_states.c     Sun Sep 26 02:14:27 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_states.c,v 1.6 1999/02/05 00:06:17 oster Exp $      */
+/*     $NetBSD: rf_states.c,v 1.6.2.1 1999/09/26 02:14:27 cgd Exp $    */
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -217,6 +217,16 @@
                if (desc->async_flag == 0)
                        wakeup(desc->bp);
 
+               /* 
+                * Wakeup any requests waiting to go.
+                */
+
+               RF_LOCK_MUTEX(((RF_Raid_t *) desc->raidPtr)->mutex);
+               ((RF_Raid_t *) desc->raidPtr)->openings++;
+               wakeup(&(((RF_Raid_t *) desc->raidPtr)->openings));
+               RF_UNLOCK_MUTEX(((RF_Raid_t *) desc->raidPtr)->mutex);
+
+
                /* printf("Calling biodone on 0x%x\n",desc->bp); */
                biodone(desc->bp);      /* access came through ioctl */
        }



Home | Main Index | Thread Index | Old Index