On Thu, 2008-10-30 at 17:29 +0900, FUJITA Tomonori wrote: > On Thu, 30 Oct 2008 09:51:40 +0200 > Boaz Harrosh <bharrosh@xxxxxxxxxxx> wrote: > > > Do you know what is the difference between "req->error =" and the error > > passed to blk_end_xxx_request(req, error, ...) ? > > I guess that blk_end_xxx_request(req, error, ...) is common Linux > error code, -EIO, etc. req->error carries protocol specific errors; > SAM_STAT_*, DID_*, etc in the case of SCSI. But I'm not confident. Yes, that's it precisely. The blk_end_request() carries a translated UNIX error code for the user (usually -EIO). req->error carries the transport error in its full glory (although it may lack pieces that won't fit into 32 bits). James -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html