[SCSI] remove scsi_request infrastructure
With Achim patch the last user (gdth) is switched away from scsi_request so we an kill it now. Also disables some code in i2o_scsi that was broken since the sg driver stopped using scsi_requests. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:

committato da
James Bottomley

parent
1951d099df
commit
beb4048750
@@ -716,8 +716,8 @@ static void gdth_scsi_done(struct scsi_cmnd *scp)
|
||||
{
|
||||
TRACE2(("gdth_scsi_done()\n"));
|
||||
|
||||
if (scp->sc_request)
|
||||
complete((struct completion *)scp->sc_request);
|
||||
if (scp->request)
|
||||
complete((struct completion *)scp->request);
|
||||
}
|
||||
|
||||
int __gdth_execute(struct scsi_device *sdev, gdth_cmd_str *gdtcmd, char *cmnd,
|
||||
@@ -732,8 +732,8 @@ int __gdth_execute(struct scsi_device *sdev, gdth_cmd_str *gdtcmd, char *cmnd,
|
||||
return -ENOMEM;
|
||||
memset(scp, 0, sizeof(*scp));
|
||||
scp->device = sdev;
|
||||
/* use sc_request field to save the ptr. to completion struct. */
|
||||
scp->sc_request = (struct scsi_request *)&wait;
|
||||
/* use request field to save the ptr. to completion struct. */
|
||||
scp->request = (struct request *)&wait;
|
||||
scp->timeout_per_command = timeout*HZ;
|
||||
scp->request_buffer = gdtcmd;
|
||||
scp->cmd_len = 12;
|
||||
|
Fai riferimento in un nuovo problema
Block a user