diff options
author | 2006-08-01 13:48:15 -0700 | |
---|---|---|
committer | 2006-08-06 11:30:28 -0500 | |
commit | b0328beed0786b07d0102ed59cbf0b54ad8f726b (patch) | |
tree | b3765f6f05f1841e8aabbd7959a0ea48f4bdcc9a /crypto/algapi.c | |
parent | [SCSI] qla2xxx: Log Trace/Diagonostic asynchronous events. (diff) | |
download | linux-rng-b0328beed0786b07d0102ed59cbf0b54ad8f726b.tar.xz linux-rng-b0328beed0786b07d0102ed59cbf0b54ad8f726b.zip |
[SCSI] qla2xxx: Fix to allow to reset devices using sg interface (sg_reset).
Currently it is impossible to reset provided by Qlogic QLA2xxx driver
SCSI devices externally using corresponding sg devices, particularly via
sg_reset utility, because qla2xxx driver in qla2xxx_eh_device_reset()
function checks if the input scsi_cmnd has its private data (CMD_SP())
attached. Then the found pointer isn't used anywhere inside of
qla2xxx_eh_device_reset(). If the RESET request comes from sg device, it
doesn't have such private data.
The attached patch removes check for non-NULL CMD_SP() from
qla2xxx_eh_device_reset(), hence allows to reset QLA2xxx's devices using
corresponding sg devices.
AV: change applies to bus/host reset handlers as well.
Signed-off-by: Vladislav Bolkhovitin <vst@vlnb.net>
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'crypto/algapi.c')
0 files changed, 0 insertions, 0 deletions