1 Sep 2005 03:17
Re: [RFC] libata new EH document
Tejun Heo <htejun <at> gmail.com>
2005-09-01 01:17:15 GMT
2005-09-01 01:17:15 GMT
Luben Tuikov wrote: > On 08/30/05 06:26, Tejun Heo wrote: > >>Albert Lee wrote: >> >> >>>>4. Corresponding scmd's result code is set to >>>> SAM_STAT_CHECK_CONDITION and qc->scsidone() callback is called >>>> directly. As we haven't filled sense data, >>>> scsi_determine_disposition() will return FAILED and SCSI EH will >>>> be scheduled. Note that as we directly call qc->scsidone(), qc is >>>> left intact. >>>> >>>> >>> >>>Could we get the sense data before calling qc->scsidone()? (Using the >>>proposed separate >>>EH qc can keep the original qc intact.) >>> >>>The issue: >>>When a DVD drive returns MEDIUM_ERROR in the sense data, libata doesn't >>>retry the command. >>> >>>For libata, when scsi_softirq() calls scsi_decide_disposition() and >>>scsi_check_sense() to determine >>>how to handle the result, scsi_check_sense() always returns "fail" since >>>the sense data is not there >>>yet. The sense data is requested later in the libata error handler. But >>>the command has already been >>>considered as an "error".(Continue reading)
RSS Feed