diff options
author | Dan Williams <dan.j.williams@intel.com> | 2011-03-11 13:13:51 -0500 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-07-03 06:55:30 -0400 |
commit | 1077a574103177bff22b7cdd155d960f46ac1e8f (patch) | |
tree | 4ccbb76979a661c240464d5a951fbd96893b5586 /drivers/scsi/isci/request.c | |
parent | 34cad85d18d6da1cc11e410046d7572e65b19fcf (diff) |
isci: fix incorrect assumptions about task->dev and task->dev->port being NULL
A domain_device has the same lifetime as its related scsi_target. The
scsi_target is reference counted based on outstanding commands,
therefore it is safe to assume that if we have a valid sas_task that the
->dev pointer is also valid.
The asd_sas_port of a domain_device has the same lifetime as the driver
so it can also never be NULL as long as the sas_task is valid and the
driver is loaded.
This also cleans up isci_task_complete_for_upper_layer(), renames it to
isci_task_refuse() and notices that the isci_completion_selection
parameter was set to isci_perform_normal_io_completion by all callers.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/request.c')
0 files changed, 0 insertions, 0 deletions