* [PATCH] lk2.5.53 ide-scsi
@ 2002-12-24 9:03 Douglas Gilbert
0 siblings, 0 replies; only message in thread
From: Douglas Gilbert @ 2002-12-24 9:03 UTC (permalink / raw)
To: linux-scsi; +Cc: wrlk
[-- Attachment #1: Type: text/plain, Size: 273 bytes --]
Willem's main ide-scsi patch got into lk 2.5.53 but not
his rev1.patch (oops on reset). It is re-packaged as the
ide-scsi_2553wr2.diff attachment. His patch to cleanly
unregister sysfs entries didn't make it into
drivers/ide/ide.c so it is attached as well.
Doug Gilbert
[-- Attachment #2: ide-scsi_2553wr2.diff --]
[-- Type: text/plain, Size: 997 bytes --]
--- linux/drivers/scsi/ide-scsi.c 2002-12-24 18:12:54.000000000 +1100
+++ linux/drivers/scsi/ide-scsi.c2553wr2 2002-12-24 09:30:17.000000000 +1100
@@ -289,6 +289,7 @@
pc->timeout = jiffies + WAIT_READY;
/* NOTE! Save the failed packet command in "rq->buffer" */
rq->buffer = (void *) failed_command->special;
+ pc->scsi_cmd = ((idescsi_pc_t *) failed_command->special)->scsi_cmd;
if (test_bit(IDESCSI_LOG_CMD, &scsi->log)) {
printk ("ide-scsi: %s: queue cmd = ", drive->name);
hexdump(pc->c, 6);
@@ -876,7 +877,8 @@
/* is cmd active?
* need to lock so this stuff doesn't change under us */
spin_lock_irqsave(&ide_lock, flags);
- if (scsi->pc && scsi->pc->scsi_cmd->serial_number == cmd->serial_number) {
+ if (scsi->pc && scsi->pc->scsi_cmd &&
+ scsi->pc->scsi_cmd->serial_number == cmd->serial_number) {
/* yep - let's give it some more time -
* we can do that, we're in _our_ error kernel thread */
spin_unlock_irqrestore(&ide_lock, flags);
[-- Attachment #3: ide_2552_wr1.diff --]
[-- Type: text/plain, Size: 319 bytes --]
--- linux/drivers/ide/ide.c 2002-12-10 17:38:28.000000000 +1100
+++ linux/drivers/ide/ide.c2552willem 2002-12-24 09:10:25.000000000 +1100
@@ -2314,6 +2314,8 @@
{
ide_drive_t *drive;
+ driver_unregister(&driver->gen_driver);
+
spin_lock(&drivers_lock);
list_del(&driver->drivers);
spin_unlock(&drivers_lock);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-12-24 9:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-24 9:03 [PATCH] lk2.5.53 ide-scsi Douglas Gilbert
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.