aic79xx: remove busyq
Subsystems (2)
PATCH 3/4 aic79xx: remove busyq
[note: just for review... do not apply, will be submitted later via git]
author Jeff Garzik <[email protected]> Sun, 29 May 2005 11:34:17 -0400 committer Jeff Garzik <[email protected]> Sun, 29 May 2005 11:34:17 -0400
[SCSI] aic79xx: remove busyq
The aic79xx driver has two spurious queues in it's linux glue code: the busyq which queues incoming commands to the driver and the completeq which queues finished commands before sending them back to the mid-layer
This patch just removes the busyq and makes the aic finally return the correct status to get the mid-layer to manage its queueing, so a command is either committed to the sequencer or returned to the midlayer for requeue.
drivers/scsi/aic7xxx/aic79xx_core.c +0 -1
@@ -9039,7 +9039,6 @@ ahd_dump_card_state(struct ahd_softc *ahahd_outb (ahd,STACK , (ahd->saved_stack[i] >>8 ) &0xFF ); }printf ("\n<<<<<<<<<<<<<<<<< Dump Card State Ends >>>>>>>>>>>>>>>>>>\n" ); -ahd_platform_dump_card_state (ahd);ahd_restore_modes (ahd, saved_modes);if (paused ==0 )ahd_unpause (ahd);
drivers/scsi/aic7xxx/aic79xx_osm.c +136 -393
706 lines not on this page · raw message
drivers/scsi/aic7xxx/aic79xx_osm.h +1 -4
@@ -310,7 +310,7 @@ struct ahd_cmd {* after a successfully completed inquiry command to the target when * that inquiry data indicates a lun is present. */ -TAILQ_HEAD (ahd_busyq, ahd_cmd); + typedef enum { AHD_DEV_UNCONFIGURED = 0x01, AHD_DEV_FREEZE_TIL_EMPTY = 0x02, /* Freeze queue until active == 0 */
@@ -325,7 +325,6 @@ typedef enum {struct ahd_linux_target ;struct ahd_linux_device {TAILQ_ENTRY (ahd_linux_device) links; -struct ahd_busyq busyq;/* * The number of transactions currently
@@ -508,7 +507,6 @@ struct ahd_platform_data {struct ahd_completeq completeq;spinlock_t spin_lock; -struct tasklet_struct runq_tasklet;u_int qfrozen;pid_t dv_pid;struct timer_list completeq_timer;
@@ -1115,7 +1113,6 @@ void ahd_done(struct ahd_softc*, structvoid ahd_send_async (struct ahd_softc *,char channel,u_int target,u_int lun,ac_code ,void *);void ahd_print_path (struct ahd_softc *,struct scb *); -void ahd_platform_dump_card_state (struct ahd_softc *ahd);#ifdef CONFIG_PCI #define AHD_PCI_CONFIG 1