[SCSI] host state model update: replace old host bitmap state
Migrate the current SCSI host state model to a model like SCSI device is using. Signed-off-by: Mike Anderson <andmike@us.ibm.com> Rejections fixed up and Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
committed by
James Bottomley
parent
5dbffcd83d
commit
d330187408
@@ -627,7 +627,7 @@ int scsi_dispatch_cmd(struct scsi_cmnd *cmd)
|
||||
spin_lock_irqsave(host->host_lock, flags);
|
||||
scsi_cmd_get_serial(host, cmd);
|
||||
|
||||
if (unlikely(test_bit(SHOST_CANCEL, &host->shost_state))) {
|
||||
if (unlikely(host->shost_state == SHOST_CANCEL)) {
|
||||
cmd->result = (DID_NO_CONNECT << 16);
|
||||
scsi_done(cmd);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user