lkml.org 
[lkml]   [1999]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Still ide-scsi problem with 2.2.0-final
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/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.044 / U:1.404 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site