mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[SCSI] Return ENODATA on medium error
When a medium error is detected the SCSI stack should return ENODATA to the upper layers. [jejb: fix whitespace error] Signed-off-by: Hannes Reinecke <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
a9d6ceb838
commit
7e782af576
5 changed files with 25 additions and 2 deletions
|
|
@ -2321,6 +2321,9 @@ bool blk_update_request(struct request *req, int error, unsigned int nr_bytes)
|
|||
case -ENOSPC:
|
||||
error_type = "critical space allocation";
|
||||
break;
|
||||
case -ENODATA:
|
||||
error_type = "critical medium";
|
||||
break;
|
||||
case -EIO:
|
||||
default:
|
||||
error_type = "I/O";
|
||||
|
|
|
|||
Loading…
Reference in a new issue