zfs process hang on pool access

Andriy Gapon avg at FreeBSD.org
Tue Aug 2 19:04:09 UTC 2011


on 02/08/2011 21:24 David P Discher said the following:
> 
> On Aug 2, 2011, at 11:13 AM, Andriy Gapon wrote:
> 
>> on 02/08/2011 21:01 David P Discher said the following:
>>> 41 #define LBOLT   (gethrtime() * (NANOSEC/hz))
>>
>> I think that you got this wrong in your local changes.
> 
> 
> 
> How is this different than what's in -head : 
> 
> 	sys/cddl/compat/opensolaris/kern/opensolaris.c:65:      nsec_per_tick = NANOSEC / hz;
> 
> 	sys/cddl/compat/opensolaris/sys/time.h:71: return (gethrtime() / nsec_per_tick);
> 
> 
> The only difference is an explicit casting the return as int64_t ? 

No.  You need to look at the maths ;-)
Note the absence of '*' symbols in the quote from head.

-- 
Andriy Gapon


More information about the freebsd-fs mailing list