/* Allow the next untagged transaction for this target or target lun to be executed. We use a counting semaphore to allow the lock to be acquired recursively. Once the count drops to zero, the transaction queues will be run.  */
static void ahc_release_untagged_queues(struct ahc_softc *ahc)
/* Allow the next untagged transaction for this target or target lun to be executed. We use a counting semaphore to allow the lock to be acquired recursively. Once the count drops to zero, the transaction queues will be run.  */
static void ahc_release_untagged_queues(struct ahc_softc *ahc)
{
	if ((ahc->flags & AHC_SCB_BTT) == 0) {
		ahc->untagged_queue_lock--;
		if (ahc->untagged_queue_lock == 0)
			ahc_run_untagged_queues(ahc);
	}
}