diff options
author | Matthew Wilcox <matthew@wil.cx> | 2007-09-18 21:54:43 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-10-12 14:51:52 -0400 |
commit | 12a441622b753684cc73d1c6f225e9ac53e0bf77 (patch) | |
tree | 71a2314ae948c0e2697d68a902d6bfbec85e1fc0 /drivers/scsi/in2000.c | |
parent | 13ba9bcbfd6741e4c01ac5a505888b7b3a6d99da (diff) |
[SCSI] Remove ->pid field from scsi_cmnd
The pid field is a duplicate of the serial_number field and has been
scheduled for removal for a long time. A few drivers were still using
it, so just change them to use serial_number instead.
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/in2000.c')
-rw-r--r-- | drivers/scsi/in2000.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/scsi/in2000.c b/drivers/scsi/in2000.c index 312190a69389..ab7cbf3449ce 100644 --- a/drivers/scsi/in2000.c +++ b/drivers/scsi/in2000.c | |||
@@ -343,7 +343,7 @@ static int in2000_queuecommand(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *)) | |||
343 | instance = cmd->device->host; | 343 | instance = cmd->device->host; |
344 | hostdata = (struct IN2000_hostdata *) instance->hostdata; | 344 | hostdata = (struct IN2000_hostdata *) instance->hostdata; |
345 | 345 | ||
346 | DB(DB_QUEUE_COMMAND, scmd_printk(KERN_DEBUG, cmd, "Q-%02x-%ld(", cmd->cmnd[0], cmd->pid)) | 346 | DB(DB_QUEUE_COMMAND, scmd_printk(KERN_DEBUG, cmd, "Q-%02x-%ld(", cmd->cmnd[0], cmd->serial_number)) |
347 | 347 | ||
348 | /* Set up a few fields in the Scsi_Cmnd structure for our own use: | 348 | /* Set up a few fields in the Scsi_Cmnd structure for our own use: |
349 | * - host_scribble is the pointer to the next cmd in the input queue | 349 | * - host_scribble is the pointer to the next cmd in the input queue |
@@ -427,7 +427,7 @@ static int in2000_queuecommand(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *)) | |||
427 | 427 | ||
428 | in2000_execute(cmd->device->host); | 428 | in2000_execute(cmd->device->host); |
429 | 429 | ||
430 | DB(DB_QUEUE_COMMAND, printk(")Q-%ld ", cmd->pid)) | 430 | DB(DB_QUEUE_COMMAND, printk(")Q-%ld ", cmd->serial_number)) |
431 | return 0; | 431 | return 0; |
432 | } | 432 | } |
433 | 433 | ||
@@ -703,7 +703,7 @@ static void in2000_execute(struct Scsi_Host *instance) | |||
703 | * to search the input_Q again... | 703 | * to search the input_Q again... |
704 | */ | 704 | */ |
705 | 705 | ||
706 | DB(DB_EXECUTE, printk("%s%ld)EX-2 ", (cmd->SCp.phase) ? "d:" : "", cmd->pid)) | 706 | DB(DB_EXECUTE, printk("%s%ld)EX-2 ", (cmd->SCp.phase) ? "d:" : "", cmd->serial_number)) |
707 | 707 | ||
708 | } | 708 | } |
709 | 709 | ||
@@ -1147,7 +1147,7 @@ static irqreturn_t in2000_intr(int irqnum, void *dev_id) | |||
1147 | case CSR_XFER_DONE | PHS_COMMAND: | 1147 | case CSR_XFER_DONE | PHS_COMMAND: |
1148 | case CSR_UNEXP | PHS_COMMAND: | 1148 | case CSR_UNEXP | PHS_COMMAND: |
1149 | case CSR_SRV_REQ | PHS_COMMAND: | 1149 | case CSR_SRV_REQ | PHS_COMMAND: |
1150 | DB(DB_INTR, printk("CMND-%02x,%ld", cmd->cmnd[0], cmd->pid)) | 1150 | DB(DB_INTR, printk("CMND-%02x,%ld", cmd->cmnd[0], cmd->serial_number)) |
1151 | transfer_pio(cmd->cmnd, cmd->cmd_len, DATA_OUT_DIR, hostdata); | 1151 | transfer_pio(cmd->cmnd, cmd->cmd_len, DATA_OUT_DIR, hostdata); |
1152 | hostdata->state = S_CONNECTED; | 1152 | hostdata->state = S_CONNECTED; |
1153 | break; | 1153 | break; |
@@ -1189,7 +1189,7 @@ static irqreturn_t in2000_intr(int irqnum, void *dev_id) | |||
1189 | switch (msg) { | 1189 | switch (msg) { |
1190 | 1190 | ||
1191 | case COMMAND_COMPLETE: | 1191 | case COMMAND_COMPLETE: |
1192 | DB(DB_INTR, printk("CCMP-%ld", cmd->pid)) | 1192 | DB(DB_INTR, printk("CCMP-%ld", cmd->serial_number)) |
1193 | write_3393_cmd(hostdata, WD_CMD_NEGATE_ACK); | 1193 | write_3393_cmd(hostdata, WD_CMD_NEGATE_ACK); |
1194 | hostdata->state = S_PRE_CMP_DISC; | 1194 | hostdata->state = S_PRE_CMP_DISC; |
1195 | break; | 1195 | break; |
@@ -1327,7 +1327,7 @@ static irqreturn_t in2000_intr(int irqnum, void *dev_id) | |||
1327 | 1327 | ||
1328 | write_3393(hostdata, WD_SOURCE_ID, SRCID_ER); | 1328 | write_3393(hostdata, WD_SOURCE_ID, SRCID_ER); |
1329 | if (phs == 0x60) { | 1329 | if (phs == 0x60) { |
1330 | DB(DB_INTR, printk("SX-DONE-%ld", cmd->pid)) | 1330 | DB(DB_INTR, printk("SX-DONE-%ld", cmd->serial_number)) |
1331 | cmd->SCp.Message = COMMAND_COMPLETE; | 1331 | cmd->SCp.Message = COMMAND_COMPLETE; |
1332 | lun = read_3393(hostdata, WD_TARGET_LUN); | 1332 | lun = read_3393(hostdata, WD_TARGET_LUN); |
1333 | DB(DB_INTR, printk(":%d.%d", cmd->SCp.Status, lun)) | 1333 | DB(DB_INTR, printk(":%d.%d", cmd->SCp.Status, lun)) |
@@ -1348,7 +1348,7 @@ static irqreturn_t in2000_intr(int irqnum, void *dev_id) | |||
1348 | 1348 | ||
1349 | in2000_execute(instance); | 1349 | in2000_execute(instance); |
1350 | } else { | 1350 | } else { |
1351 | printk("%02x:%02x:%02x-%ld: Unknown SEL_XFER_DONE phase!!---", asr, sr, phs, cmd->pid); | 1351 | printk("%02x:%02x:%02x-%ld: Unknown SEL_XFER_DONE phase!!---", asr, sr, phs, cmd->serial_number); |
1352 | } | 1352 | } |
1353 | break; | 1353 | break; |
1354 | 1354 | ||
@@ -1415,7 +1415,7 @@ static irqreturn_t in2000_intr(int irqnum, void *dev_id) | |||
1415 | spin_unlock_irqrestore(instance->host_lock, flags); | 1415 | spin_unlock_irqrestore(instance->host_lock, flags); |
1416 | return IRQ_HANDLED; | 1416 | return IRQ_HANDLED; |
1417 | } | 1417 | } |
1418 | DB(DB_INTR, printk("UNEXP_DISC-%ld", cmd->pid)) | 1418 | DB(DB_INTR, printk("UNEXP_DISC-%ld", cmd->serial_number)) |
1419 | hostdata->connected = NULL; | 1419 | hostdata->connected = NULL; |
1420 | hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun); | 1420 | hostdata->busy[cmd->device->id] &= ~(1 << cmd->device->lun); |
1421 | hostdata->state = S_UNCONNECTED; | 1421 | hostdata->state = S_UNCONNECTED; |
@@ -1440,7 +1440,7 @@ static irqreturn_t in2000_intr(int irqnum, void *dev_id) | |||
1440 | */ | 1440 | */ |
1441 | 1441 | ||
1442 | write_3393(hostdata, WD_SOURCE_ID, SRCID_ER); | 1442 | write_3393(hostdata, WD_SOURCE_ID, SRCID_ER); |
1443 | DB(DB_INTR, printk("DISC-%ld", cmd->pid)) | 1443 | DB(DB_INTR, printk("DISC-%ld", cmd->serial_number)) |
1444 | if (cmd == NULL) { | 1444 | if (cmd == NULL) { |
1445 | printk(" - Already disconnected! "); | 1445 | printk(" - Already disconnected! "); |
1446 | hostdata->state = S_UNCONNECTED; | 1446 | hostdata->state = S_UNCONNECTED; |
@@ -1573,7 +1573,7 @@ static irqreturn_t in2000_intr(int irqnum, void *dev_id) | |||
1573 | } else | 1573 | } else |
1574 | hostdata->state = S_CONNECTED; | 1574 | hostdata->state = S_CONNECTED; |
1575 | 1575 | ||
1576 | DB(DB_INTR, printk("-%ld", cmd->pid)) | 1576 | DB(DB_INTR, printk("-%ld", cmd->serial_number)) |
1577 | break; | 1577 | break; |
1578 | 1578 | ||
1579 | default: | 1579 | default: |
@@ -1702,7 +1702,7 @@ static int __in2000_abort(Scsi_Cmnd * cmd) | |||
1702 | prev->host_scribble = cmd->host_scribble; | 1702 | prev->host_scribble = cmd->host_scribble; |
1703 | cmd->host_scribble = NULL; | 1703 | cmd->host_scribble = NULL; |
1704 | cmd->result = DID_ABORT << 16; | 1704 | cmd->result = DID_ABORT << 16; |
1705 | printk(KERN_WARNING "scsi%d: Abort - removing command %ld from input_Q. ", instance->host_no, cmd->pid); | 1705 | printk(KERN_WARNING "scsi%d: Abort - removing command %ld from input_Q. ", instance->host_no, cmd->serial_number); |
1706 | cmd->scsi_done(cmd); | 1706 | cmd->scsi_done(cmd); |
1707 | return SUCCESS; | 1707 | return SUCCESS; |
1708 | } | 1708 | } |
@@ -1723,7 +1723,7 @@ static int __in2000_abort(Scsi_Cmnd * cmd) | |||
1723 | 1723 | ||
1724 | if (hostdata->connected == cmd) { | 1724 | if (hostdata->connected == cmd) { |
1725 | 1725 | ||
1726 | printk(KERN_WARNING "scsi%d: Aborting connected command %ld - ", instance->host_no, cmd->pid); | 1726 | printk(KERN_WARNING "scsi%d: Aborting connected command %ld - ", instance->host_no, cmd->serial_number); |
1727 | 1727 | ||
1728 | printk("sending wd33c93 ABORT command - "); | 1728 | printk("sending wd33c93 ABORT command - "); |
1729 | write_3393(hostdata, WD_CONTROL, CTRL_IDI | CTRL_EDI | CTRL_POLLED); | 1729 | write_3393(hostdata, WD_CONTROL, CTRL_IDI | CTRL_EDI | CTRL_POLLED); |
@@ -2268,7 +2268,7 @@ static int in2000_proc_info(struct Scsi_Host *instance, char *buf, char **start, | |||
2268 | strcat(bp, "\nconnected: "); | 2268 | strcat(bp, "\nconnected: "); |
2269 | if (hd->connected) { | 2269 | if (hd->connected) { |
2270 | cmd = (Scsi_Cmnd *) hd->connected; | 2270 | cmd = (Scsi_Cmnd *) hd->connected; |
2271 | sprintf(tbuf, " %ld-%d:%d(%02x)", cmd->pid, cmd->device->id, cmd->device->lun, cmd->cmnd[0]); | 2271 | sprintf(tbuf, " %ld-%d:%d(%02x)", cmd->serial_number, cmd->device->id, cmd->device->lun, cmd->cmnd[0]); |
2272 | strcat(bp, tbuf); | 2272 | strcat(bp, tbuf); |
2273 | } | 2273 | } |
2274 | } | 2274 | } |
@@ -2276,7 +2276,7 @@ static int in2000_proc_info(struct Scsi_Host *instance, char *buf, char **start, | |||
2276 | strcat(bp, "\ninput_Q: "); | 2276 | strcat(bp, "\ninput_Q: "); |
2277 | cmd = (Scsi_Cmnd *) hd->input_Q; | 2277 | cmd = (Scsi_Cmnd *) hd->input_Q; |
2278 | while (cmd) { | 2278 | while (cmd) { |
2279 | sprintf(tbuf, " %ld-%d:%d(%02x)", cmd->pid, cmd->device->id, cmd->device->lun, cmd->cmnd[0]); | 2279 | sprintf(tbuf, " %ld-%d:%d(%02x)", cmd->serial_number, cmd->device->id, cmd->device->lun, cmd->cmnd[0]); |
2280 | strcat(bp, tbuf); | 2280 | strcat(bp, tbuf); |
2281 | cmd = (Scsi_Cmnd *) cmd->host_scribble; | 2281 | cmd = (Scsi_Cmnd *) cmd->host_scribble; |
2282 | } | 2282 | } |
@@ -2285,7 +2285,7 @@ static int in2000_proc_info(struct Scsi_Host *instance, char *buf, char **start, | |||
2285 | strcat(bp, "\ndisconnected_Q:"); | 2285 | strcat(bp, "\ndisconnected_Q:"); |
2286 | cmd = (Scsi_Cmnd *) hd->disconnected_Q; | 2286 | cmd = (Scsi_Cmnd *) hd->disconnected_Q; |
2287 | while (cmd) { | 2287 | while (cmd) { |
2288 | sprintf(tbuf, " %ld-%d:%d(%02x)", cmd->pid, cmd->device->id, cmd->device->lun, cmd->cmnd[0]); | 2288 | sprintf(tbuf, " %ld-%d:%d(%02x)", cmd->serial_number, cmd->device->id, cmd->device->lun, cmd->cmnd[0]); |
2289 | strcat(bp, tbuf); | 2289 | strcat(bp, tbuf); |
2290 | cmd = (Scsi_Cmnd *) cmd->host_scribble; | 2290 | cmd = (Scsi_Cmnd *) cmd->host_scribble; |
2291 | } | 2291 | } |