Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ata Call xfer->c_start() with the channel from the x...



details:   https://anonhg.NetBSD.org/src/rev/84e3e0d614f9
branches:  trunk
changeset: 570793:84e3e0d614f9
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Thu Oct 28 20:11:41 2004 +0000

description:
Call xfer->c_start() with the channel from the xfer, not the one from the
thread. They may be different if we have a shared queue.

diffstat:

 sys/dev/ata/ata.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b6fe01aa075d -r 84e3e0d614f9 sys/dev/ata/ata.c
--- a/sys/dev/ata/ata.c Thu Oct 28 20:10:29 2004 +0000
+++ b/sys/dev/ata/ata.c Thu Oct 28 20:11:41 2004 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: ata.c,v 1.60 2004/09/11 18:01:58 bouyer Exp $      */
+/*      $NetBSD: ata.c,v 1.61 2004/10/28 20:11:41 bouyer Exp $      */
 
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.  All rights reserved.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.60 2004/09/11 18:01:58 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.61 2004/10/28 20:11:41 bouyer Exp $");
 
 #ifndef ATADEBUG
 #define ATADEBUG
@@ -351,7 +351,7 @@
                        chp->ch_queue->queue_freeze--;
                        xfer = chp->ch_queue->active_xfer;
                        KASSERT(xfer != NULL);
-                       (*xfer->c_start)(chp, xfer);
+                       (*xfer->c_start)(xfer->c_chp, xfer);
                } else if (chp->ch_queue->queue_freeze > 1)
                        panic("ata_thread: queue_freeze");
                splx(s);



Home | Main Index | Thread Index | Old Index