aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/twe/twe.c
diff options
context:
space:
mode:
authorVinod Kashyap <vkashyap@FreeBSD.org>2004-05-12 04:10:37 +0000
committerVinod Kashyap <vkashyap@FreeBSD.org>2004-05-12 04:10:37 +0000
commit088113ed0b486a379c183bc8c1996ee801a8c156 (patch)
treeb30e9b3f85b9e6742f97dcf417b5d4416767f8e0 /sys/dev/twe/twe.c
parentf651b12907393be08e6f1aa1b8291151a9ca973c (diff)
Notes
Diffstat (limited to 'sys/dev/twe/twe.c')
-rw-r--r--sys/dev/twe/twe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/twe/twe.c b/sys/dev/twe/twe.c
index e3c20738a97a..e935c895451c 100644
--- a/sys/dev/twe/twe.c
+++ b/sys/dev/twe/twe.c
@@ -396,13 +396,13 @@ twe_startio(struct twe_softc *sc)
/* build a command from an outstanding bio */
if (tr == NULL) {
- /* see if there's work to be done */
- if ((bp = twe_dequeue_bio(sc)) == NULL)
+ /* get a command to handle the bio with */
+ if (twe_get_request(sc, &tr))
break;
- /* get a command to handle the bio with */
- if (twe_get_request(sc, &tr)) {
- twe_enqueue_bio(sc, bp); /* failed, put the bio back */
+ /* see if there's work to be done */
+ if ((bp = twe_dequeue_bio(sc)) == NULL) {
+ twe_release_request(tr);
break;
}