Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Oct 2009 15:07:19 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        mav@FreeBSD.org
Cc:        svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org
Subject:   Re: svn commit: r198487 - head/sys/dev/ata
Message-ID:  <20091027.150719.-1219478921.imp@bsdimp.com>
In-Reply-To: <200910261123.n9QBNfJY087028@svn.freebsd.org>
References:  <200910261123.n9QBNfJY087028@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <200910261123.n9QBNfJY087028@svn.freebsd.org>
            Alexander Motin <mav@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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091027.150719.-1219478921.imp>