Skip to contentSkip to conversation

Interference between ide-scsi and aic7xxx in 2.5.73-bk6

PATCH Willem Riede 1 participant 1 message Jun 29, 2003 SCSI

lore
Share & tools
lore
#0 lore raw

I am experimenting with 2.5.73-bk6. Specifically, I'm trying to improve the ide-scsi error handling, which has been an on-and-off battle for me for a while now as I try to get the OnStream DI-30 to work properly with 2.5.

That means patches to ide-scsi.c and ide-iops.c -- see attached.

Before I get into describing what happens, let me tell you about the hardware I use for this testing.

It is a dual PIII at 600MHz, SuperMicro P6DBS motherboard, Intel 440BX chipset, 512M memory and the following devices as reported during boot:

Loading aic7xxx module
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.35
<Adaptec aic7895 Ultra SCSI adapter>
aic7895C: Ultra Wide Channel A, SCSI Id=7, 32/253 SCBs

(scsi0:A:3): 10.000MB/s transfers (10.000MHz, offset 7) (scsi0:A:6): 10.000MB/s transfers (10.000MHz, offset 8)

  Vendor: OnStream  Model: SC-30             Rev: 1.09
  Type:   Sequential-Access                  ANSI SCSI revision: 02
  Vendor: MATSHITA  Model: CD-R   CW-7502    Rev: 4.17
  Type:   CD-ROM                             ANSI SCSI revision: 02

scsi1 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.35
<Adaptec aic7895 Ultra SCSI adapter>
aic7895C: Ultra Wide Channel B, SCSI Id=7, 32/253 SCBs

(scsi1:A:0): 40.000MB/s transfers (20.000MHz, offset 8, 16bit) (scsi1:A:1): 40.000MB/s transfers (20.000MHz, offset 8, 16bit)
Vendor: IBM Model: DNES-318350W Rev: SA30
Type: Direct-Access ANSI SCSI revision: 03
scsi1:A:0:0: Tagged Queuing enabled. Depth 16
SCSI device sda: 35843670 512-byte hdwr sectors (18352 MB)
sda: cache data unavailable
sda: assuming drive cache: write through
sda: sda1 sda2 sda3 sda4
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
Vendor: IBM Model: DGHS09U Rev: 0350
Type: Direct-Access ANSI SCSI revision: 03
scsi1:A:1:0: Tagged Queuing enabled. Depth 16
SCSI device sdb: 17916240 512-byte hdwr sectors (9173 MB)
sdb: asking for cache data failed
sdb: assuming drive cache: write through
sdb: sdb1 sdb2 sdb3
Attached scsi disk sdb at scsi1, channel 0, id 1, lun 0

hda: ATAPI 32X CD-ROM drive, 5644kB Cache, (U)DMA Uniform CD-ROM driver Revision: 3.12
scsi2 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: OnStream Model: ADR Series Rev: 5.05
Type: Sequential-Access ANSI SCSI revision: 02
scsi3 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: OnStream Model: DI-30 Rev: 1.07
Type: Sequential-Access ANSI SCSI revision: 02
scsi4 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: CONNER Model: CTT8000-A Rev: 2.08
Type: Sequential-Access ANSI SCSI revision: 02

During boot, well before any of my experiments kick in, I see - with recent 2.5 kernels only - the following:

(scsi1:A:0:0): CDB: 0x12 0x1 0x80 0x0 0x60 0x0 (scsi1:A:0:0): Saw underflow (76 of 96 bytes). Treated as error (scsi1:A:0:0): CDB: 0x12 0x1 0x80 0x0 0x60 0x0 (scsi1:A:0:0): Saw underflow (76 of 96 bytes). Treated as error (scsi1:A:0:0): CDB: 0x12 0x1 0x80 0x0 0x60 0x0 (scsi1:A:0:0): Saw underflow (76 of 96 bytes). Treated as error (scsi1:A:0:0): CDB: 0x12 0x1 0x80 0x0 0x60 0x0 (scsi1:A:0:0): Saw underflow (76 of 96 bytes). Treated as error (scsi1:A:0:0): CDB: 0x12 0x1 0x80 0x0 0x60 0x0 (scsi1:A:0:0): Saw underflow (76 of 96 bytes). Treated as error (scsi1:A:0:0): CDB: 0x12 0x1 0x80 0x0 0x60 0x0 (scsi1:A:0:0): Saw underflow (76 of 96 bytes). Treated as error (scsi1:A:0:0): CDB: 0x12 0x1 0x80 0x0 0x60 0x0 (scsi1:A:0:0): Saw underflow (76 of 96 bytes). Treated as error (scsi1:A:0:0): CDB: 0x12 0x1 0x80 0x0 0x60 0x0 (scsi1:A:0:0): Saw underflow (76 of 96 bytes). Treated as error (scsi1:A:0:0): CDB: 0x12 0x1 0x80 0x0 0x60 0x0 (scsi1:A:0:0): Saw underflow (76 of 96 bytes). Treated as error (scsi1:A:0:0): CDB: 0x12 0x1 0x80 0x0 0x60 0x0 (scsi1:A:0:0): Saw underflow (76 of 96 bytes). Treated as error (scsi1:A:1:0): CDB: 0x12 0x1 0x80 0x0 0x60 0x0 (scsi1:A:1:0): Saw underflow (76 of 96 bytes). Treated as error (scsi1:A:1:0): CDB: 0x12 0x1 0x80 0x0 0x60 0x0 (scsi1:A:1:0): Saw underflow (76 of 96 bytes). Treated as error (scsi1:A:1:0): CDB: 0x12 0x1 0x80 0x0 0x60 0x0 (scsi1:A:1:0): Saw underflow (76 of 96 bytes). Treated as error (scsi1:A:1:0): CDB: 0x12 0x1 0x80 0x0 0x60 0x0 (scsi1:A:1:0): Saw underflow (76 of 96 bytes). Treated as error (scsi1:A:1:0): CDB: 0x12 0x1 0x80 0x0 0x60 0x0 (scsi1:A:1:0): Saw underflow (76 of 96 bytes). Treated as error (scsi1:A:1:0): CDB: 0x12 0x1 0x83 0x0 0x60 0x0 (scsi1:A:1:0): Saw underflow (42 of 96 bytes). Treated as error (scsi1:A:1:0): CDB: 0x12 0x1 0x83 0x0 0x60 0x0 (scsi1:A:1:0): Saw underflow (42 of 96 bytes). Treated as error (scsi1:A:1:0): CDB: 0x12 0x1 0x83 0x0 0x60 0x0 (scsi1:A:1:0): Saw underflow (42 of 96 bytes). Treated as error (scsi1:A:1:0): CDB: 0x12 0x1 0x83 0x0 0x60 0x0 (scsi1:A:1:0): Saw underflow (42 of 96 bytes). Treated as error (scsi1:A:1:0): CDB: 0x12 0x1 0x83 0x0 0x60 0x0 (scsi1:A:1:0): Saw underflow (42 of 96 bytes). Treated as error (scsi1:A:1:0): CDB: 0x12 0x1 0x80 0x0 0x60 0x0 (scsi1:A:1:0): Saw underflow (76 of 96 bytes). Treated as error (scsi1:A:1:0): CDB: 0x12 0x1 0x80 0x0 0x60 0x0 (scsi1:A:1:0): Saw underflow (76 of 96 bytes). Treated as error (scsi1:A:1:0): CDB: 0x12 0x1 0x80 0x0 0x60 0x0 (scsi1:A:1:0): Saw underflow (76 of 96 bytes). Treated as error (scsi1:A:1:0): CDB: 0x12 0x1 0x80 0x0 0x60 0x0 (scsi1:A:1:0): Saw underflow (76 of 96 bytes). Treated as error (scsi1:A:1:0): CDB: 0x12 0x1 0x80 0x0 0x60 0x0 (scsi1:A:1:0): Saw underflow (76 of 96 bytes). Treated as error

What would cause that? Is it safe to ignore?

Now, on to what happens when I exercise the DI-30.

This is what a successful error recovery would look like (with scsi logging at level 4):

Jun 29 08:34:03 fallguy kernel: Error handler scsi_eh_3 waking up
Jun 29 08:34:03 fallguy kernel: scsi_eh_prt_fail_stats: 3:0:0:0 cmds failed: 0, cancel: 1
Jun 29 08:34:03 fallguy kernel: Total of 1 commands on 1 devices require eh work
Jun 29 08:34:03 fallguy kernel: scsi_eh_3: aborting cmd:0xce3d96e0
Jun 29 08:34:03 fallguy kernel: ide-scsi: abort called on hdc for 35576
Jun 29 08:34:05 fallguy kernel: hdc: irq timeout: status=0xd8 { Busy }
Jun 29 08:34:05 fallguy kernel: ide-scsi: waiting in abort
Jun 29 08:34:05 fallguy kernel: hdc: ATAPI reset complete
Jun 29 08:34:05 fallguy kernel: hdc: irq timeout: status=0xd0 { Busy }
Jun 29 08:34:05 fallguy kernel: hdc: ATAPI reset complete
Jun 29 08:34:05 fallguy kernel: hdc: irq timeout: status=0xd0 { Busy }
Jun 29 08:34:05 fallguy kernel: ide-scsi: abort fail return
Jun 29 08:34:05 fallguy kernel: scsi_eh_3: aborting cmd failed:0xce3d96e0
Jun 29 08:34:05 fallguy kernel: scsi_eh_3: Sending BDR sdev: 0xdfaa36c0
Jun 29 08:34:05 fallguy kernel: ide-scsi: reset called on hdc for 35576
Jun 29 08:34:05 fallguy kernel: ide-scsi: drive->abort completed, now do_reset
Jun 29 08:34:05 fallguy kernel: hdc: ATAPI reset complete
Jun 29 08:34:05 fallguy kernel: ide-scsi: reset success return
Jun 29 08:34:05 fallguy kernel: scsi_eh_done scmd: ce3d96e0 result: 0
Jun 29 08:34:05 fallguy kernel: scsi_send_eh_cmnd: scmd: ce3d96e0, rtn:2002
Jun 29 08:34:05 fallguy kernel: scsi_send_eh_cmnd: scsi_eh_completed_normally 2002
Jun 29 08:34:05 fallguy kernel: scsi_eh_tur: scmd ce3d96e0 rtn 2002
Jun 29 08:34:05 fallguy kernel: scsi_eh_3: flush retry cmd: ce3d96e0
Jun 29 08:34:05 fallguy kernel: scsi_restart_operations: waking up host to restart
Jun 29 08:34:05 fallguy kernel: Error handler scsi_eh_3 sleeping

But often, things go haywire and aic7xxx gets all shook up (FYI, sda4 is /):

scsi_eh_3: aborting cmd:0xdbf09594
ide-scsi: abort called on hdc for 29285
ide-scsi: device did not become ready in abort
hdc: irq timeout: status=0xd8 { Busy }
scsi_eh_3: aborting cmd failed:0xdbf09594
scsi_eh_3: Sending BDR sdev: 0xd78952d4
ide-scsi: reset called on hdc for 29285
ide-scsi: atapi_abort called on hdc to do drive reset
ide-scsi: drive->abort completed, now do_reset
hdc: ATAPI reset complete
Error handler scsi_eh_1 waking up
scsi_eh_prt_fail_stats: 1:0:0:0 cmds failed: 0, cancel: 1 Total of 1 commands on 1 devices require eh work
scsi_eh_1: aborting cmd:0xdf9c5594
scsi1:0:0:0: Attempting to queue an ABORT message
CDB: 0x2a 0x0 0x1 0xb2 0x14 0x91 0x0 0x0 0x10 0x0 scsi1:0:0:0: Command already completed aic7xxx_abort returns 0x2002
scsi_eh_times_out: scmd:df9c5594
scsi1:0:0:0: Attempting to queue an ABORT message
CDB: 0x0 0x0 0x0 0x0 0x0 0x0
scsi1:0:0:0: Command already completed aic7xxx_abort returns 0x2002
scsi_send_eh_cmnd: scmd: df9c5594, rtn:2003
scsi_eh_tur: scmd df9c5594 rtn 2003
scsi_eh_1: Sending BDR sdev: 0xdf91b660 scsi1:0:0:0: Attempting to queue a TARGET RESET message
CDB: 0x2a 0x0 0x1 0xb2 0x14 0x91 0x0 0x0 0x10 0x0 scsi1:0:0:0: Command not found
aic7xxx_dev_reset returns 0x2002
scsi_eh_times_out: scmd:df9c5594
scsi1:0:0:0: Attempting to queue an ABORT message
CDB: 0x0 0x0 0x0 0x0 0x0 0x0
scsi1:0:0:0: Command already completed aic7xxx_abort returns 0x2002
scsi_send_eh_cmnd: scmd: df9c5594, rtn:2003
scsi_eh_tur: scmd df9c5594 rtn 2003
scsi_eh_1: Sending BRST chan: 0
scsi_try_bus_reset: Snd Bus RST
scsi_eh_times_out: scmd:df9c5594
scsi1:0:0:0: Attempting to queue an ABORT message
CDB: 0x0 0x0 0x0 0x0 0x0 0x0
scsi1: At time of recovery, card was paused

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Dump Card State Begins <<<<<<<<<<<<<<<<<

scsi1: Dumping Card State in Message-out phase, at SEQADDR 0x164
Card was paused
ACCUM = 0xa0, SINDEX = 0x61, DINDEX = 0xe4, ARG_2 = 0x1
HCNT = 0x0 SCBPTR = 0x2
SCSISIGI[0xb6]:(REQI|BSYI|ATNI|MSGI|CDI) ERROR[0x0]
SCSIBUSL[0xc0] LASTPHASE[0xa0]:(MSGI|CDI) SCSISEQ[0x12]:(ENAUTOATNP|ENRSELI) SBLKCTL[0x2]:(SELWIDE) SCSIRATE[0x0] SEQCTL[0x10]:(FASTMODE)
SEQ_FLAGS[0x40]:(NO_CDB_SENT) SSTAT0[0x7]:(DMADONE|SPIORDY|SDONE) SSTAT1[0x3]:(REQINIT|PHASECHG) SSTAT2[0x0] SSTAT3[0x0]
SIMODE0[0x0] SIMODE1[0xac]:(ENSCSIPERR|ENBUSFREE|ENSCSIRST|ENSELTIMO) SXFRCTL0[0x88]:(SPIOEN|DFON) DFCNTRL[0x0] DFSTATUS[0x2d]:(FIFOEMP|DFTHRESH|HDONE|FIFOQWDEMP)
STACK: 0xd6 0x159 0xd6 0x159
SCB count = 20
Kernel NEXTQSCB = 11
Card NEXTQSCB = 11
QINFIFO entries:
Waiting Queue entries:
Disconnected Queue entries:
QOUTFIFO entries:
Sequencer Free SCB List: 11 1 12 4 14 13 3 5 7 15 10 6 0 8 9 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Sequencer SCB Info:
0 SCB_CONTROL[0xe8]:(ULTRAENB|TAG_ENB|DISCENB|TARGET_SCB)
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
1 SCB_CONTROL[0xe8]:(ULTRAENB|TAG_ENB|DISCENB|TARGET_SCB)
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
2 SCB_CONTROL[0x60]:(TAG_ENB|DISCENB) SCB_SCSIID[0x7] SCB_LUN[0x0]
SCB_TAG[0x5]
3 SCB_CONTROL[0xe8]:(ULTRAENB|TAG_ENB|DISCENB|TARGET_SCB)
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
4 SCB_CONTROL[0xe8]:(ULTRAENB|TAG_ENB|DISCENB|TARGET_SCB)
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
5 SCB_CONTROL[0xe8]:(ULTRAENB|TAG_ENB|DISCENB|TARGET_SCB)
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
6 SCB_CONTROL[0xe8]:(ULTRAENB|TAG_ENB|DISCENB|TARGET_SCB)
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
7 SCB_CONTROL[0xe8]:(ULTRAENB|TAG_ENB|DISCENB|TARGET_SCB)
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
8 SCB_CONTROL[0xe8]:(ULTRAENB|TAG_ENB|DISCENB|TARGET_SCB)
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
9 SCB_CONTROL[0xe8]:(ULTRAENB|TAG_ENB|DISCENB|TARGET_SCB)
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
10 SCB_CONTROL[0xe8]:(ULTRAENB|TAG_ENB|DISCENB|TARGET_SCB)
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
11 SCB_CONTROL[0xe8]:(ULTRAENB|TAG_ENB|DISCENB|TARGET_SCB)
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
12 SCB_CONTROL[0xe8]:(ULTRAENB|TAG_ENB|DISCENB|TARGET_SCB)
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
13 SCB_CONTROL[0xe8]:(ULTRAENB|TAG_ENB|DISCENB|TARGET_SCB)
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
14 SCB_CONTROL[0xe8]:(ULTRAENB|TAG_ENB|DISCENB|TARGET_SCB)
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
15 SCB_CONTROL[0xe8]:(ULTRAENB|TAG_ENB|DISCENB|TARGET_SCB)
SCB_SCSIID[0x7] SCB_LUN[0x0] SCB_TAG[0xff]
16 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(LID) SCB_TAG[0xff]
17 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(LID) SCB_TAG[0xff]
18 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(LID) SCB_TAG[0xff]
19 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(LID) SCB_TAG[0xff]
20 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(LID) SCB_TAG[0xff]
21 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(LID) SCB_TAG[0xff]
22 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(LID) SCB_TAG[0xff]
23 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(LID) SCB_TAG[0xff]
24 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(LID) SCB_TAG[0xff]
25 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(LID) SCB_TAG[0xff]
26 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(LID) SCB_TAG[0xff]
27 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(LID) SCB_TAG[0xff]
28 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(LID) SCB_TAG[0xff]
29 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(LID) SCB_TAG[0xff]
30 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(LID) SCB_TAG[0xff]
31 SCB_CONTROL[0x0] SCB_SCSIID[0xff]:(TWIN_CHNLB|OID|TWIN_TID)
SCB_LUN[0xff]:(LID) SCB_TAG[0xff]
Pending list:
5 SCB_CONTROL[0x60]:(TAG_ENB|DISCENB) SCB_SCSIID[0x7] SCB_LUN[0x0]
Kernel Free SCB list: 10 13 12 1 15 7 3 4 14 0 6 2 19 8 9 18 17 16
DevQ(0:0:0): 0 waiting
DevQ(0:1:0): 0 waiting

<<<<<<<<<<<<<<<<< Dump Card State Ends >>>>>>>>>>>>>>>>>>
scsi1:0:0:0: Device is active, asserting ATN
Recovery code sleeping
Recovery code awake
Timer Expired
aic7xxx_abort returns 0x2003
scsi_send_eh_cmnd: scmd: df9c5594, rtn:2003
scsi_eh_tur: scmd df9c5594 rtn 2003
scsi_eh_1: Sending HRST
scsi_try_host_reset: Snd Host RST
scsi_eh_1: HRST failed
scsi: Device offlined - not ready after error recovery: host 1 channel 0 id 0 lun 0
scsi_eh_1: flush finish cmd: df9c5594
SCSI error : <1 0 0 0> return code = 0x6000000
end_request: I/O error, dev sda, sector 28447889
scsi_restart_operations: waking up host to restart
Error handler scsi_eh_1 sleeping
scsi1 (0:0): rejecting I/O to offline device
Aborting journal on device sda4.
journal commit I/O error
ext3_abort called.
EXT3-fs abort (device sda4): ext3_journal_start: Detected aborted journal Remounting filesystem read-only
EXT3-fs error (device sda4) in start_transaction: Journal has aborted

How can my experiments cause this? Unless I touch scsi structures without proper locking, but I don't see where :-( Or is this an independent problem?

I appreciate any insight anybody has to offer.

Thanks, Willem Riede.

home/wriede/develop/ide-iops.c renamed from drivers/ide/ide-iops.c +5 -0
@@ -1115,6 +1115,7 @@
 	}
 	/* done polling */
 	hwgroup->poll_timeout = 0;
+	hwgroup->busy--;
 	return ide_stopped;
 }
 
@@ -1134,6 +1135,7 @@
 		if (hwif->reset_poll(drive)) {
 			printk(KERN_ERR "%s: host reset_poll failure for %s.\n",
 				hwif->name, drive->name);
+			hwgroup->busy--;
 			return ide_stopped;
 		}
 	}
@@ -1179,6 +1181,7 @@
 		}
 	}
 	hwgroup->poll_timeout = 0;	/* done polling */
+	hwgroup->busy--;
 	return ide_stopped;
 }
 
@@ -1267,6 +1270,7 @@
 #if OK_TO_RESET_CONTROLLER
 	if (!IDE_CONTROL_REG) {
 		spin_unlock_irqrestore(&ide_lock, flags);
+		hwgroup->busy--;
 		return ide_stopped;
 	}
 
@@ -1315,6 +1319,7 @@
 
 ide_startstop_t ide_do_reset (ide_drive_t *drive)
 {
+	HWGROUP(drive)->busy++;
 	return do_reset1(drive, 0);
 }
 
home/wriede/develop/ide-scsi.c renamed from drivers/scsi/ide-scsi.c +131 -54

333 lines not on this page · raw message