Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/scsipi Use simple tags for read and write, unless B_...



details:   https://anonhg.NetBSD.org/src/rev/1b9dc1830479
branches:  trunk
changeset: 509157:1b9dc1830479
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Apr 28 04:11:31 2001 +0000

description:
Use simple tags for read and write, unless B_ORDERED is set, in
which case we use an ordered tag.

diffstat:

 sys/dev/scsipi/cd.c |  9 +++++----
 sys/dev/scsipi/sd.c |  9 +++++----
 2 files changed, 10 insertions(+), 8 deletions(-)

diffs (54 lines):

diff -r 4960bef4ef61 -r 1b9dc1830479 sys/dev/scsipi/cd.c
--- a/sys/dev/scsipi/cd.c       Sat Apr 28 04:11:10 2001 +0000
+++ b/sys/dev/scsipi/cd.c       Sat Apr 28 04:11:31 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cd.c,v 1.145 2001/04/25 17:53:38 bouyer Exp $  */
+/*     $NetBSD: cd.c,v 1.146 2001/04/28 04:11:31 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -708,13 +708,14 @@
 
                /*
                 * Figure out what flags to use.
-                * XXX Need a B_ORDERED.
                 */
                flags = XS_CTL_NOSLEEP|XS_CTL_ASYNC;
                if (bp->b_flags & B_READ)
-                       flags |= XS_CTL_DATA_IN | XS_CTL_SIMPLE_TAG;
+                       flags |= XS_CTL_DATA_IN;
+               if (bp->b_flags & B_ORDERED)
+                       flags |= XS_CTL_ORDERED_TAG;
                else
-                       flags |= XS_CTL_DATA_OUT | XS_CTL_ORDERED_TAG;
+                       flags |= XS_CTL_SIMPLE_TAG;
 
                /*
                 * Call the routine that chats with the adapter.
diff -r 4960bef4ef61 -r 1b9dc1830479 sys/dev/scsipi/sd.c
--- a/sys/dev/scsipi/sd.c       Sat Apr 28 04:11:10 2001 +0000
+++ b/sys/dev/scsipi/sd.c       Sat Apr 28 04:11:31 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sd.c,v 1.171 2001/04/25 17:53:40 bouyer Exp $  */
+/*     $NetBSD: sd.c,v 1.172 2001/04/28 04:11:31 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -782,13 +782,14 @@
 
                /*
                 * Figure out what flags to use.
-                * XXX Need a B_ORDERED.
                 */
                flags = XS_CTL_NOSLEEP|XS_CTL_ASYNC;
                if (bp->b_flags & B_READ)
-                       flags |= XS_CTL_DATA_IN | XS_CTL_SIMPLE_TAG;
+                       flags |= XS_CTL_DATA_IN;
+               if (bp->b_flags & B_ORDERED)
+                       flags |= XS_CTL_ORDERED_TAG;
                else
-                       flags |= XS_CTL_DATA_OUT | XS_CTL_ORDERED_TAG;
+                       flags |= XS_CTL_SIMPLE_TAG;
 
                /*
                 * Call the routine that chats with the adapter.



Home | Main Index | Thread Index | Old Index