Skip to content

Commit 5abc55a

Browse files
committed
Revert "scsi: handle flush errors properly"
This reverts commit 89fb4cd. See: #703
1 parent b82491c commit 5abc55a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/scsi/scsi_lib.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -831,14 +831,6 @@ void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes)
831831
scsi_next_command(cmd);
832832
return;
833833
}
834-
} else if (blk_rq_bytes(req) == 0 && result && !sense_deferred) {
835-
/*
836-
* Certain non BLOCK_PC requests are commands that don't
837-
* actually transfer anything (FLUSH), so cannot use
838-
* good_bytes != blk_rq_bytes(req) as the signal for an error.
839-
* This sets the error explicitly for the problem case.
840-
*/
841-
error = __scsi_error_from_host_byte(cmd, result);
842834
}
843835

844836
/* no bidi support for !REQ_TYPE_BLOCK_PC yet */

0 commit comments

Comments
 (0)