svn commit: r298011 - head/sys/cam/ata
Warner Losh
imp at bsdimp.com
Fri Apr 15 15:45:20 UTC 2016
A shorter timeout dramatically cuts the length of time that the
queue has to be frozen for error recovery. This allows one,
in theory, to recover the system more quickly after a drive
goes off into the weeds.
Warner
> On Apr 15, 2016, at 9:23 AM, Ronald Klop <ronald-lists at klop.ws> wrote:
>
> Hello,
>
> Out of curiosity, what are these big problems? Broken device or other things (timeouts/triggers/full queues) going on in the kernel?
>
> Regards,
> Ronald.
>
>
> On Fri, 15 Apr 2016 00:13:46 +0200, Warner Losh <imp at freebsd.org> wrote:
>
>> Author: imp
>> Date: Thu Apr 14 22:13:46 2016
>> New Revision: 298011
>> URL: https://svnweb.freebsd.org/changeset/base/298011
>> erLog:
>> Add a comment about why the timeout for flush was lowered to 5s.
>>
>> Modified:
>> head/sys/cam/ata/ata_da.c
>>
>> Modified: head/sys/cam/ata/ata_da.c
>> ==============================================================================
>> --- head/sys/cam/ata/ata_da.c Thu Apr 14 22:13:44 2016 (r298010)
>> +++ head/sys/cam/ata/ata_da.c Thu Apr 14 22:13:46 2016 (r298011)
>> @@ -912,6 +912,11 @@ adadump(void *arg, void *virtual, vm_off
>> if (softc->flags & ADA_FLAG_CAN_FLUSHCACHE) {
>> xpt_setup_ccb(&ccb.ccb_h, periph->path, CAM_PRIORITY_NORMAL);
>> + /*
>> + * Tell the drive to flush its intenral cache. if we
>> + * can't flush in 5s we have big problems. No need to
>> + * wait the default 60s to detect problems.
>> + */
>> ccb.ccb_h.ccb_state = ADA_CCB_DUMP;
>> cam_fill_ataio(&ccb.ataio,
>> 0,
>> _______________________________________________
>> svn-src-all at freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/svn-src-all
>> To unsubscribe, send any mail to "svn-src-all-unsubscribe at freebsd.org"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20160415/7fd23610/attachment.sig>
More information about the svn-src-head
mailing list