Re: Still ide-scsi problem with 2.2.0-final

Meelis Roos (mroos@tartu.cyber.ee)
Sat, 23 Jan 1999 01:05:32 +0200 (EET)


Yes, this patch works for me and cures the misdetection of cdrom after
using sg. Thanks!

> The following patch will default rq_dev to 0 when allocating a
> new command structure. This can potentially create a side effect,
> though, and we'll perhaps have to run on all the places which
> allocate a command structure with a NULL parameter to reqp, and
> update the rq_dev field to reflect the driver in which the request
> originated.
>
[...]
> --- linux/drivers/scsi/scsi.c~ Mon Jan 11 19:56:56 1999
> +++ linux/drivers/scsi/scsi.c Fri Jan 22 23:14:49 1999
> @@ -1204,6 +1204,7 @@
> SCpnt->request.rq_status = RQ_SCSI_BUSY;
> SCpnt->request.sem = NULL; /* And no one is waiting for this
> * to complete */
> + SCpnt->request.rq_dev = 0;
> }
> atomic_inc(&SCpnt->host->host_active);
> SCSI_LOG_MLQUEUE(5, printk("Activating command for device %d (%d)\n",

---
Meelis Roos (mroos@tartu.cyber.ee)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/