hpsa.c (407863cb9daddd99000c70cffb7013f47f67b29c) | hpsa.c (e345893bd4a8b0a9383a9ce9ff06034da103ad14) |
---|---|
1/* 2 * Disk Array driver for HP Smart Array SAS controllers 3 * Copyright 2000, 2014 Hewlett-Packard Development Company, L.P. 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; version 2 of the License. 8 * --- 4329 unchanged lines hidden (view full) --- 4338 int rc; 4339 struct ctlr_info *h; 4340 struct hpsa_scsi_dev_t *dev; 4341 4342 /* find the controller to which the command to be aborted was sent */ 4343 h = sdev_to_hba(scsicmd->device); 4344 if (h == NULL) /* paranoia */ 4345 return FAILED; | 1/* 2 * Disk Array driver for HP Smart Array SAS controllers 3 * Copyright 2000, 2014 Hewlett-Packard Development Company, L.P. 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; version 2 of the License. 8 * --- 4329 unchanged lines hidden (view full) --- 4338 int rc; 4339 struct ctlr_info *h; 4340 struct hpsa_scsi_dev_t *dev; 4341 4342 /* find the controller to which the command to be aborted was sent */ 4343 h = sdev_to_hba(scsicmd->device); 4344 if (h == NULL) /* paranoia */ 4345 return FAILED; |
4346 4347 if (lockup_detected(h)) 4348 return FAILED; 4349 |
|
4346 dev = scsicmd->device->hostdata; 4347 if (!dev) { 4348 dev_err(&h->pdev->dev, "hpsa_eh_device_reset_handler: " 4349 "device lookup failed.\n"); 4350 return FAILED; 4351 } 4352 dev_warn(&h->pdev->dev, "resetting device %d:%d:%d:%d\n", 4353 h->scsi_host->host_no, dev->bus, dev->target, dev->lun); --- 207 unchanged lines hidden (view full) --- 4561 int refcount; 4562 4563 /* Find the controller of the command to be aborted */ 4564 h = sdev_to_hba(sc->device); 4565 if (WARN(h == NULL, 4566 "ABORT REQUEST FAILED, Controller lookup failed.\n")) 4567 return FAILED; 4568 | 4350 dev = scsicmd->device->hostdata; 4351 if (!dev) { 4352 dev_err(&h->pdev->dev, "hpsa_eh_device_reset_handler: " 4353 "device lookup failed.\n"); 4354 return FAILED; 4355 } 4356 dev_warn(&h->pdev->dev, "resetting device %d:%d:%d:%d\n", 4357 h->scsi_host->host_no, dev->bus, dev->target, dev->lun); --- 207 unchanged lines hidden (view full) --- 4565 int refcount; 4566 4567 /* Find the controller of the command to be aborted */ 4568 h = sdev_to_hba(sc->device); 4569 if (WARN(h == NULL, 4570 "ABORT REQUEST FAILED, Controller lookup failed.\n")) 4571 return FAILED; 4572 |
4573 if (lockup_detected(h)) 4574 return FAILED; 4575 |
|
4569 /* Check that controller supports some kind of task abort */ 4570 if (!(HPSATMF_PHYS_TASK_ABORT & h->TMFSupportFlags) && 4571 !(HPSATMF_LOG_TASK_ABORT & h->TMFSupportFlags)) 4572 return FAILED; 4573 4574 memset(msg, 0, sizeof(msg)); 4575 ml += sprintf(msg+ml, "ABORT REQUEST on C%d:B%d:T%d:L%llu ", 4576 h->scsi_host->host_no, sc->device->channel, --- 2983 unchanged lines hidden --- | 4576 /* Check that controller supports some kind of task abort */ 4577 if (!(HPSATMF_PHYS_TASK_ABORT & h->TMFSupportFlags) && 4578 !(HPSATMF_LOG_TASK_ABORT & h->TMFSupportFlags)) 4579 return FAILED; 4580 4581 memset(msg, 0, sizeof(msg)); 4582 ml += sprintf(msg+ml, "ABORT REQUEST on C%d:B%d:T%d:L%llu ", 4583 h->scsi_host->host_no, sc->device->channel, --- 2983 unchanged lines hidden --- |