Weirdness in error handling in SCSI and block layers.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi list.

I recently noticed something wrong in error handling in between SCSI
and block device driver layers.

The problem is that SCSI errors are not actually passed to block
device layer. When scsi_end_request() calls end_that_request_chunk()
it passes only the uptodate value which set earlier, at the end of
scsi_io_completion(), and only indicate whether request succeeded or
failed. Eventually __end_that_request_first() calls bio_endio() with
either -EIO or uptodate value (that in case of success will be 0). As
a result, instead of getting error code that more or less indicates
what kind of error took place, block device layer always gets -EIO.

Any comments/ideas?

Alexander Sandler.

PS: Please CC to me.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux