.. | .. |
---|
933 | 933 | * abort for that I/O by the FW crossed each other. |
---|
934 | 934 | * The FW returned FW_EINVAL. The original I/O would have |
---|
935 | 935 | * returned with FW_SUCCESS or any other SCSI error. |
---|
936 | | - * 3. The FW couldnt sent the abort out on the wire, as there |
---|
| 936 | + * 3. The FW couldn't sent the abort out on the wire, as there |
---|
937 | 937 | * was an I-T nexus loss (link down, remote device logged |
---|
938 | 938 | * out etc). FW sent back an appropriate IT nexus loss status |
---|
939 | 939 | * for the abort. |
---|
940 | 940 | * 4. FW sent an abort, but abort timed out (remote device |
---|
941 | 941 | * didnt respond). FW replied back with |
---|
942 | 942 | * FW_SCSI_ABORT_TIMEDOUT. |
---|
943 | | - * 5. FW couldnt genuinely abort the request for some reason, |
---|
| 943 | + * 5. FW couldn't genuinely abort the request for some reason, |
---|
944 | 944 | * and sent us an error. |
---|
945 | 945 | * |
---|
946 | 946 | * The first 3 scenarios are treated as succesful abort |
---|
.. | .. |
---|
1783 | 1783 | int nsge = 0; |
---|
1784 | 1784 | int rv = SCSI_MLQUEUE_HOST_BUSY, nr; |
---|
1785 | 1785 | int retval; |
---|
1786 | | - int cpu; |
---|
1787 | 1786 | struct csio_scsi_qset *sqset; |
---|
1788 | 1787 | struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); |
---|
1789 | 1788 | |
---|
1790 | | - if (!blk_rq_cpu_valid(cmnd->request)) |
---|
1791 | | - cpu = smp_processor_id(); |
---|
1792 | | - else |
---|
1793 | | - cpu = cmnd->request->cpu; |
---|
1794 | | - |
---|
1795 | | - sqset = &hw->sqset[ln->portid][cpu]; |
---|
| 1789 | + sqset = &hw->sqset[ln->portid][blk_mq_rq_cpu(cmnd->request)]; |
---|
1796 | 1790 | |
---|
1797 | 1791 | nr = fc_remote_port_chkready(rport); |
---|
1798 | 1792 | if (nr) { |
---|
.. | .. |
---|
1865 | 1859 | spin_unlock_irqrestore(&hw->lock, flags); |
---|
1866 | 1860 | |
---|
1867 | 1861 | if (retval != 0) { |
---|
1868 | | - csio_err(hw, "ioreq: %p couldnt be started, status:%d\n", |
---|
| 1862 | + csio_err(hw, "ioreq: %p couldn't be started, status:%d\n", |
---|
1869 | 1863 | ioreq, retval); |
---|
1870 | 1864 | CSIO_INC_STATS(scsim, n_busy_error); |
---|
1871 | 1865 | goto err_put_req; |
---|
.. | .. |
---|
1993 | 1987 | /* FW successfully aborted the request */ |
---|
1994 | 1988 | if (host_byte(cmnd->result) == DID_REQUEUE) { |
---|
1995 | 1989 | csio_info(hw, |
---|
1996 | | - "Aborted SCSI command to (%d:%llu) serial#:0x%lx\n", |
---|
| 1990 | + "Aborted SCSI command to (%d:%llu) tag %u\n", |
---|
1997 | 1991 | cmnd->device->id, cmnd->device->lun, |
---|
1998 | | - cmnd->serial_number); |
---|
| 1992 | + cmnd->request->tag); |
---|
1999 | 1993 | return SUCCESS; |
---|
2000 | 1994 | } else { |
---|
2001 | 1995 | csio_info(hw, |
---|
2002 | | - "Failed to abort SCSI command, (%d:%llu) serial#:0x%lx\n", |
---|
| 1996 | + "Failed to abort SCSI command, (%d:%llu) tag %u\n", |
---|
2003 | 1997 | cmnd->device->id, cmnd->device->lun, |
---|
2004 | | - cmnd->serial_number); |
---|
| 1998 | + cmnd->request->tag); |
---|
2005 | 1999 | return FAILED; |
---|
2006 | 2000 | } |
---|
2007 | 2001 | } |
---|
.. | .. |
---|
2283 | 2277 | .this_id = -1, |
---|
2284 | 2278 | .sg_tablesize = CSIO_SCSI_MAX_SGE, |
---|
2285 | 2279 | .cmd_per_lun = CSIO_MAX_CMD_PER_LUN, |
---|
2286 | | - .use_clustering = ENABLE_CLUSTERING, |
---|
2287 | 2280 | .shost_attrs = csio_fcoe_lport_attrs, |
---|
2288 | 2281 | .max_sectors = CSIO_MAX_SECTOR_SIZE, |
---|
2289 | 2282 | }; |
---|
.. | .. |
---|
2303 | 2296 | .this_id = -1, |
---|
2304 | 2297 | .sg_tablesize = CSIO_SCSI_MAX_SGE, |
---|
2305 | 2298 | .cmd_per_lun = CSIO_MAX_CMD_PER_LUN, |
---|
2306 | | - .use_clustering = ENABLE_CLUSTERING, |
---|
2307 | 2299 | .shost_attrs = csio_fcoe_vport_attrs, |
---|
2308 | 2300 | .max_sectors = CSIO_MAX_SECTOR_SIZE, |
---|
2309 | 2301 | }; |
---|
.. | .. |
---|
2352 | 2344 | } |
---|
2353 | 2345 | |
---|
2354 | 2346 | /* Allocate Dma buffers for DDP */ |
---|
2355 | | - ddp_desc->vaddr = pci_alloc_consistent(hw->pdev, unit_size, |
---|
2356 | | - &ddp_desc->paddr); |
---|
| 2347 | + ddp_desc->vaddr = dma_alloc_coherent(&hw->pdev->dev, unit_size, |
---|
| 2348 | + &ddp_desc->paddr, GFP_KERNEL); |
---|
2357 | 2349 | if (!ddp_desc->vaddr) { |
---|
2358 | 2350 | csio_err(hw, |
---|
2359 | 2351 | "SCSI response DMA buffer (ddp) allocation" |
---|
.. | .. |
---|
2375 | 2367 | list_for_each(tmp, &scm->ddp_freelist) { |
---|
2376 | 2368 | ddp_desc = (struct csio_dma_buf *) tmp; |
---|
2377 | 2369 | tmp = csio_list_prev(tmp); |
---|
2378 | | - pci_free_consistent(hw->pdev, ddp_desc->len, ddp_desc->vaddr, |
---|
2379 | | - ddp_desc->paddr); |
---|
| 2370 | + dma_free_coherent(&hw->pdev->dev, ddp_desc->len, |
---|
| 2371 | + ddp_desc->vaddr, ddp_desc->paddr); |
---|
2380 | 2372 | list_del_init(&ddp_desc->list); |
---|
2381 | 2373 | kfree(ddp_desc); |
---|
2382 | 2374 | } |
---|
.. | .. |
---|
2402 | 2394 | list_for_each(tmp, &scm->ddp_freelist) { |
---|
2403 | 2395 | ddp_desc = (struct csio_dma_buf *) tmp; |
---|
2404 | 2396 | tmp = csio_list_prev(tmp); |
---|
2405 | | - pci_free_consistent(hw->pdev, ddp_desc->len, ddp_desc->vaddr, |
---|
2406 | | - ddp_desc->paddr); |
---|
| 2397 | + dma_free_coherent(&hw->pdev->dev, ddp_desc->len, |
---|
| 2398 | + ddp_desc->vaddr, ddp_desc->paddr); |
---|
2407 | 2399 | list_del_init(&ddp_desc->list); |
---|
2408 | 2400 | kfree(ddp_desc); |
---|
2409 | 2401 | } |
---|