Skip to content

Commit

Permalink
scsi: fdomain: Translate message to host byte status
Browse files Browse the repository at this point in the history
Instead of setting the message byte translate it to the appropriate host
byte. As error recovery would return DID_ERROR for any non-zero message
byte the translation doesn't change the error handling.

Link: https://lore.kernel.org/r/20210427083046.31620-37-hare@suse.de
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
  • Loading branch information
Hannes Reinecke authored and Martin K. Petersen committed Jun 1, 2021
1 parent b2e88c9 commit 0ee44f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/fdomain.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,8 @@ static void fdomain_work(struct work_struct *work)

if (done) {
set_status_byte(cmd, cmd->SCp.Status);
set_msg_byte(cmd, cmd->SCp.Message);
set_host_byte(cmd, DID_OK);
scsi_msg_to_host_byte(cmd, cmd->SCp.Message);
fdomain_finish_cmd(fd);
} else {
if (cmd->SCp.phase & disconnect) {
Expand Down

0 comments on commit 0ee44f9

Please sign in to comment.