svn commit: r198487 - head/sys/dev/ata

M. Warner Losh imp at bsdimp.com
Tue Oct 27 21:11:33 UTC 2009


In message: <200910261123.n9QBNfJY087028 at svn.freebsd.org>
            Alexander Motin <mav at FreeBSD.org> writes:
: Author: mav
: Date: Mon Oct 26 11:23:41 2009
: New Revision: 198487
: URL: http://svn.freebsd.org/changeset/base/198487
: 
: Log:
:   Round timeout up when converting CAM milliseconds to ATA seconds.

This implements ceil(timeout) rather than round(timeout).  Is that
intended?

Warner

: -	request->timeout = ccb_h->timeout / 1000; /* XXX lost granularity */
: +	request->timeout = (ccb_h->timeout + 999) / 1000;
...
: -		request->timeout = csio->ccb_h.timeout / 1000;
: +		request->timeout = (csio->ccb_h.timeout + 999) / 1000;


More information about the svn-src-all mailing list