From 41a1325df93a5e3c2b07a4e0d95f47e10075e1d0 Mon Sep 17 00:00:00 2001 From: Scott Long Date: Sat, 21 Feb 2004 05:32:40 +0000 Subject: Fix a major brain-o. If the command needs to be put on the deferred queue, take it off of the busy queue first. This should fix the 'command is on another queue' panic that showed up recently. --- sys/dev/aac/aac.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys') diff --git a/sys/dev/aac/aac.c b/sys/dev/aac/aac.c index 57017bbc2cd5..0d08883e26e8 100644 --- a/sys/dev/aac/aac.c +++ b/sys/dev/aac/aac.c @@ -1290,6 +1290,7 @@ aac_map_command_sg(void *arg, bus_dma_segment_t *segs, int nseg, int error) /* put the FIB on the outbound queue */ if (aac_enqueue_fib(sc, cm->cm_queue, cm) == EBUSY) { + aac_remove_busy(cm); aac_unmap_command(cm); aac_requeue_ready(cm); } -- cgit v1.3