Re: [PATCH 5/8] scsi: fix TUR error handling in sr_media_change()

From: Tejun Heo
Date: Thu Dec 09 2010 - 13:54:11 EST


Hello, Sergei.

On 12/09/2010 07:20 PM, Sergei Shtylyov wrote:
>> + /*
>> + * Media is considered to be present if TUR succeeds or fails with
>> + * sense data indicating something other than media-not-present
>> + * (ASC 0x3a).
>> + */
>> + if (!scsi_status_is_good(retval) &&
>> + (!scsi_sense_valid(sshdr) || sshdr->asc == 0x3a)) {
>> + /*
>> + * Probably not media in the device. Mark as changed, and
>
> s/not/no/

Updated patch already posted. Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/