diff --git a/sys/dev/scsipi/cd.c b/sys/dev/scsipi/cd.c index 14f9e5eff563..3c24fb6b2442 100644 --- a/sys/dev/scsipi/cd.c +++ b/sys/dev/scsipi/cd.c @@ -1,4 +1,4 @@ -/* $NetBSD: cd.c,v 1.146 2001/04/28 04:11:31 thorpej Exp $ */ +/* $NetBSD: cd.c,v 1.147 2001/04/28 09:33:25 tsutsui Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -712,6 +712,8 @@ cdstart(periph) flags = XS_CTL_NOSLEEP|XS_CTL_ASYNC; if (bp->b_flags & B_READ) flags |= XS_CTL_DATA_IN; + else + flags |= XS_CTL_DATA_OUT; if (bp->b_flags & B_ORDERED) flags |= XS_CTL_ORDERED_TAG; else diff --git a/sys/dev/scsipi/sd.c b/sys/dev/scsipi/sd.c index 4c7f165364aa..71855c43f093 100644 --- a/sys/dev/scsipi/sd.c +++ b/sys/dev/scsipi/sd.c @@ -1,4 +1,4 @@ -/* $NetBSD: sd.c,v 1.172 2001/04/28 04:11:31 thorpej Exp $ */ +/* $NetBSD: sd.c,v 1.173 2001/04/28 09:33:25 tsutsui Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -786,6 +786,8 @@ sdstart(periph) flags = XS_CTL_NOSLEEP|XS_CTL_ASYNC; if (bp->b_flags & B_READ) flags |= XS_CTL_DATA_IN; + else + flags |= XS_CTL_DATA_OUT; if (bp->b_flags & B_ORDERED) flags |= XS_CTL_ORDERED_TAG; else