aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/eata.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-15 11:19:33 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-15 11:19:33 -0400
commitdf3d80f5a5c74168be42788364d13cf6c83c7b9c (patch)
tree892a964c2fd28d028f2fb7471e8543d3f4006a58 /drivers/scsi/eata.c
parent3d06f7a5f74a813cee817c4b30b5e6f0398da0be (diff)
parentc8e91b0a8fc8493e3bf3efcb3c8f866e9453cf1c (diff)
Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (207 commits) [SCSI] gdth: fix CONFIG_ISA build failure [SCSI] esp_scsi: remove __dev{init,exit} [SCSI] gdth: !use_sg cleanup and use of scsi accessors [SCSI] gdth: Move members from SCp to gdth_cmndinfo, stage 2 [SCSI] gdth: Setup proper per-command private data [SCSI] gdth: Remove gdth_ctr_tab[] [SCSI] gdth: switch to modern scsi host registration [SCSI] gdth: gdth_interrupt() gdth_get_status() & gdth_wait() fixes [SCSI] gdth: clean up host private data [SCSI] gdth: Remove virt hosts [SCSI] gdth: Reorder scsi_host_template intitializers [SCSI] gdth: kill gdth_{read,write}[bwl] wrappers [SCSI] gdth: Remove 2.4.x support, in-kernel changelog [SCSI] gdth: split out pci probing [SCSI] gdth: split out eisa probing [SCSI] gdth: split out isa probing gdth: Make one abuse of scsi_cmnd less obvious [SCSI] NCR5380: Use scsi_eh API for REQUEST_SENSE invocation [SCSI] usb storage: use scsi_eh API in REQUEST_SENSE execution [SCSI] scsi_error: Refactoring scsi_error to facilitate in synchronous REQUEST_SENSE ...
Diffstat (limited to 'drivers/scsi/eata.c')
-rw-r--r--drivers/scsi/eata.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/drivers/scsi/eata.c b/drivers/scsi/eata.c
index a83e9f150b97..ec2233114bc9 100644
--- a/drivers/scsi/eata.c
+++ b/drivers/scsi/eata.c
@@ -1758,7 +1758,7 @@ static int eata2x_queuecommand(struct scsi_cmnd *SCpnt,
1758 1758
1759 if (SCpnt->host_scribble) 1759 if (SCpnt->host_scribble)
1760 panic("%s: qcomm, pid %ld, SCpnt %p already active.\n", 1760 panic("%s: qcomm, pid %ld, SCpnt %p already active.\n",
1761 ha->board_name, SCpnt->pid, SCpnt); 1761 ha->board_name, SCpnt->serial_number, SCpnt);
1762 1762
1763 /* i is the mailbox number, look for the first free mailbox 1763 /* i is the mailbox number, look for the first free mailbox
1764 starting from last_cp_used */ 1764 starting from last_cp_used */
@@ -1792,7 +1792,7 @@ static int eata2x_queuecommand(struct scsi_cmnd *SCpnt,
1792 1792
1793 if (do_trace) 1793 if (do_trace)
1794 scmd_printk(KERN_INFO, SCpnt, 1794 scmd_printk(KERN_INFO, SCpnt,
1795 "qcomm, mbox %d, pid %ld.\n", i, SCpnt->pid); 1795 "qcomm, mbox %d, pid %ld.\n", i, SCpnt->serial_number);
1796 1796
1797 cpp->reqsen = 1; 1797 cpp->reqsen = 1;
1798 cpp->dispri = 1; 1798 cpp->dispri = 1;
@@ -1825,7 +1825,7 @@ static int eata2x_queuecommand(struct scsi_cmnd *SCpnt,
1825 unmap_dma(i, ha); 1825 unmap_dma(i, ha);
1826 SCpnt->host_scribble = NULL; 1826 SCpnt->host_scribble = NULL;
1827 scmd_printk(KERN_INFO, SCpnt, 1827 scmd_printk(KERN_INFO, SCpnt,
1828 "qcomm, pid %ld, adapter busy.\n", SCpnt->pid); 1828 "qcomm, pid %ld, adapter busy.\n", SCpnt->serial_number);
1829 return 1; 1829 return 1;
1830 } 1830 }
1831 1831
@@ -1841,13 +1841,13 @@ static int eata2x_eh_abort(struct scsi_cmnd *SCarg)
1841 1841
1842 if (SCarg->host_scribble == NULL) { 1842 if (SCarg->host_scribble == NULL) {
1843 scmd_printk(KERN_INFO, SCarg, 1843 scmd_printk(KERN_INFO, SCarg,
1844 "abort, pid %ld inactive.\n", SCarg->pid); 1844 "abort, pid %ld inactive.\n", SCarg->serial_number);
1845 return SUCCESS; 1845 return SUCCESS;
1846 } 1846 }
1847 1847
1848 i = *(unsigned int *)SCarg->host_scribble; 1848 i = *(unsigned int *)SCarg->host_scribble;
1849 scmd_printk(KERN_WARNING, SCarg, 1849 scmd_printk(KERN_WARNING, SCarg,
1850 "abort, mbox %d, pid %ld.\n", i, SCarg->pid); 1850 "abort, mbox %d, pid %ld.\n", i, SCarg->serial_number);
1851 1851
1852 if (i >= shost->can_queue) 1852 if (i >= shost->can_queue)
1853 panic("%s: abort, invalid SCarg->host_scribble.\n", ha->board_name); 1853 panic("%s: abort, invalid SCarg->host_scribble.\n", ha->board_name);
@@ -1892,7 +1892,7 @@ static int eata2x_eh_abort(struct scsi_cmnd *SCarg)
1892 SCarg->host_scribble = NULL; 1892 SCarg->host_scribble = NULL;
1893 ha->cp_stat[i] = FREE; 1893 ha->cp_stat[i] = FREE;
1894 printk("%s, abort, mbox %d ready, DID_ABORT, pid %ld done.\n", 1894 printk("%s, abort, mbox %d ready, DID_ABORT, pid %ld done.\n",
1895 ha->board_name, i, SCarg->pid); 1895 ha->board_name, i, SCarg->serial_number);
1896 SCarg->scsi_done(SCarg); 1896 SCarg->scsi_done(SCarg);
1897 return SUCCESS; 1897 return SUCCESS;
1898 } 1898 }
@@ -1909,12 +1909,12 @@ static int eata2x_eh_host_reset(struct scsi_cmnd *SCarg)
1909 struct hostdata *ha = (struct hostdata *)shost->hostdata; 1909 struct hostdata *ha = (struct hostdata *)shost->hostdata;
1910 1910
1911 scmd_printk(KERN_INFO, SCarg, 1911 scmd_printk(KERN_INFO, SCarg,
1912 "reset, enter, pid %ld.\n", SCarg->pid); 1912 "reset, enter, pid %ld.\n", SCarg->serial_number);
1913 1913
1914 spin_lock_irq(shost->host_lock); 1914 spin_lock_irq(shost->host_lock);
1915 1915
1916 if (SCarg->host_scribble == NULL) 1916 if (SCarg->host_scribble == NULL)
1917 printk("%s: reset, pid %ld inactive.\n", ha->board_name, SCarg->pid); 1917 printk("%s: reset, pid %ld inactive.\n", ha->board_name, SCarg->serial_number);
1918 1918
1919 if (ha->in_reset) { 1919 if (ha->in_reset) {
1920 printk("%s: reset, exit, already in reset.\n", ha->board_name); 1920 printk("%s: reset, exit, already in reset.\n", ha->board_name);
@@ -1954,13 +1954,13 @@ static int eata2x_eh_host_reset(struct scsi_cmnd *SCarg)
1954 if (ha->cp_stat[i] == READY || ha->cp_stat[i] == ABORTING) { 1954 if (ha->cp_stat[i] == READY || ha->cp_stat[i] == ABORTING) {
1955 ha->cp_stat[i] = ABORTING; 1955 ha->cp_stat[i] = ABORTING;
1956 printk("%s: reset, mbox %d aborting, pid %ld.\n", 1956 printk("%s: reset, mbox %d aborting, pid %ld.\n",
1957 ha->board_name, i, SCpnt->pid); 1957 ha->board_name, i, SCpnt->serial_number);
1958 } 1958 }
1959 1959
1960 else { 1960 else {
1961 ha->cp_stat[i] = IN_RESET; 1961 ha->cp_stat[i] = IN_RESET;
1962 printk("%s: reset, mbox %d in reset, pid %ld.\n", 1962 printk("%s: reset, mbox %d in reset, pid %ld.\n",
1963 ha->board_name, i, SCpnt->pid); 1963 ha->board_name, i, SCpnt->serial_number);
1964 } 1964 }
1965 1965
1966 if (SCpnt->host_scribble == NULL) 1966 if (SCpnt->host_scribble == NULL)
@@ -2015,7 +2015,7 @@ static int eata2x_eh_host_reset(struct scsi_cmnd *SCarg)
2015 2015
2016 printk 2016 printk
2017 ("%s, reset, mbox %d locked, DID_RESET, pid %ld done.\n", 2017 ("%s, reset, mbox %d locked, DID_RESET, pid %ld done.\n",
2018 ha->board_name, i, SCpnt->pid); 2018 ha->board_name, i, SCpnt->serial_number);
2019 } 2019 }
2020 2020
2021 else if (ha->cp_stat[i] == ABORTING) { 2021 else if (ha->cp_stat[i] == ABORTING) {
@@ -2029,7 +2029,7 @@ static int eata2x_eh_host_reset(struct scsi_cmnd *SCarg)
2029 2029
2030 printk 2030 printk
2031 ("%s, reset, mbox %d aborting, DID_RESET, pid %ld done.\n", 2031 ("%s, reset, mbox %d aborting, DID_RESET, pid %ld done.\n",
2032 ha->board_name, i, SCpnt->pid); 2032 ha->board_name, i, SCpnt->serial_number);
2033 } 2033 }
2034 2034
2035 else 2035 else
@@ -2043,7 +2043,7 @@ static int eata2x_eh_host_reset(struct scsi_cmnd *SCarg)
2043 do_trace = 0; 2043 do_trace = 0;
2044 2044
2045 if (arg_done) 2045 if (arg_done)
2046 printk("%s: reset, exit, pid %ld done.\n", ha->board_name, SCarg->pid); 2046 printk("%s: reset, exit, pid %ld done.\n", ha->board_name, SCarg->serial_number);
2047 else 2047 else
2048 printk("%s: reset, exit.\n", ha->board_name); 2048 printk("%s: reset, exit.\n", ha->board_name);
2049 2049
@@ -2182,7 +2182,7 @@ static int reorder(struct hostdata *ha, unsigned long cursec,
2182 cpp = &ha->cp[k]; 2182 cpp = &ha->cp[k];
2183 SCpnt = cpp->SCpnt; 2183 SCpnt = cpp->SCpnt;
2184 ll[n] = SCpnt->request->nr_sectors; 2184 ll[n] = SCpnt->request->nr_sectors;
2185 pl[n] = SCpnt->pid; 2185 pl[n] = SCpnt->serial_number;
2186 2186
2187 if (!n) 2187 if (!n)
2188 continue; 2188 continue;
@@ -2230,7 +2230,7 @@ static int reorder(struct hostdata *ha, unsigned long cursec,
2230 "%s pid %ld mb %d fc %d nr %d sec %ld ns %ld" 2230 "%s pid %ld mb %d fc %d nr %d sec %ld ns %ld"
2231 " cur %ld s:%c r:%c rev:%c in:%c ov:%c xd %d.\n", 2231 " cur %ld s:%c r:%c rev:%c in:%c ov:%c xd %d.\n",
2232 (ihdlr ? "ihdlr" : "qcomm"), 2232 (ihdlr ? "ihdlr" : "qcomm"),
2233 SCpnt->pid, k, flushcount, 2233 SCpnt->serial_number, k, flushcount,
2234 n_ready, SCpnt->request->sector, 2234 n_ready, SCpnt->request->sector,
2235 SCpnt->request->nr_sectors, cursec, YESNO(s), 2235 SCpnt->request->nr_sectors, cursec, YESNO(s),
2236 YESNO(r), YESNO(rev), YESNO(input_only), 2236 YESNO(r), YESNO(rev), YESNO(input_only),
@@ -2277,7 +2277,7 @@ static void flush_dev(struct scsi_device *dev, unsigned long cursec,
2277 "%s, pid %ld, mbox %d, adapter" 2277 "%s, pid %ld, mbox %d, adapter"
2278 " busy, will abort.\n", 2278 " busy, will abort.\n",
2279 (ihdlr ? "ihdlr" : "qcomm"), 2279 (ihdlr ? "ihdlr" : "qcomm"),
2280 SCpnt->pid, k); 2280 SCpnt->serial_number, k);
2281 ha->cp_stat[k] = ABORTING; 2281 ha->cp_stat[k] = ABORTING;
2282 continue; 2282 continue;
2283 } 2283 }
@@ -2391,11 +2391,11 @@ static irqreturn_t ihdlr(int irq, struct Scsi_Host *shost)
2391 2391
2392 if (SCpnt->host_scribble == NULL) 2392 if (SCpnt->host_scribble == NULL)
2393 panic("%s: ihdlr, mbox %d, pid %ld, SCpnt %p garbled.\n", ha->board_name, 2393 panic("%s: ihdlr, mbox %d, pid %ld, SCpnt %p garbled.\n", ha->board_name,
2394 i, SCpnt->pid, SCpnt); 2394 i, SCpnt->serial_number, SCpnt);
2395 2395
2396 if (*(unsigned int *)SCpnt->host_scribble != i) 2396 if (*(unsigned int *)SCpnt->host_scribble != i)
2397 panic("%s: ihdlr, mbox %d, pid %ld, index mismatch %d.\n", 2397 panic("%s: ihdlr, mbox %d, pid %ld, index mismatch %d.\n",
2398 ha->board_name, i, SCpnt->pid, 2398 ha->board_name, i, SCpnt->serial_number,
2399 *(unsigned int *)SCpnt->host_scribble); 2399 *(unsigned int *)SCpnt->host_scribble);
2400 2400
2401 sync_dma(i, ha); 2401 sync_dma(i, ha);
@@ -2445,12 +2445,12 @@ static irqreturn_t ihdlr(int irq, struct Scsi_Host *shost)
2445 "target_status 0x%x, sense key 0x%x.\n", 2445 "target_status 0x%x, sense key 0x%x.\n",
2446 ha->board_name, 2446 ha->board_name,
2447 SCpnt->device->channel, SCpnt->device->id, 2447 SCpnt->device->channel, SCpnt->device->id,
2448 SCpnt->device->lun, SCpnt->pid, 2448 SCpnt->device->lun, SCpnt->serial_number,
2449 spp->target_status, SCpnt->sense_buffer[2]); 2449 spp->target_status, SCpnt->sense_buffer[2]);
2450 2450
2451 ha->target_to[SCpnt->device->id][SCpnt->device->channel] = 0; 2451 ha->target_to[SCpnt->device->id][SCpnt->device->channel] = 0;
2452 2452
2453 if (ha->last_retried_pid == SCpnt->pid) 2453 if (ha->last_retried_pid == SCpnt->serial_number)
2454 ha->retries = 0; 2454 ha->retries = 0;
2455 2455
2456 break; 2456 break;
@@ -2485,7 +2485,7 @@ static irqreturn_t ihdlr(int irq, struct Scsi_Host *shost)
2485#endif 2485#endif
2486 2486
2487 ha->retries++; 2487 ha->retries++;
2488 ha->last_retried_pid = SCpnt->pid; 2488 ha->last_retried_pid = SCpnt->serial_number;
2489 } else 2489 } else
2490 status = DID_ERROR << 16; 2490 status = DID_ERROR << 16;
2491 2491
@@ -2516,7 +2516,7 @@ static irqreturn_t ihdlr(int irq, struct Scsi_Host *shost)
2516 scmd_printk(KERN_INFO, SCpnt, "ihdlr, mbox %2d, err 0x%x:%x," 2516 scmd_printk(KERN_INFO, SCpnt, "ihdlr, mbox %2d, err 0x%x:%x,"
2517 " pid %ld, reg 0x%x, count %d.\n", 2517 " pid %ld, reg 0x%x, count %d.\n",
2518 i, spp->adapter_status, spp->target_status, 2518 i, spp->adapter_status, spp->target_status,
2519 SCpnt->pid, reg, ha->iocount); 2519 SCpnt->serial_number, reg, ha->iocount);
2520 2520
2521 unmap_dma(i, ha); 2521 unmap_dma(i, ha);
2522 2522