HomeFreeBSD

msecs_to_jiffies() is implemented using tvtohz(9), which always returns a

Description

msecs_to_jiffies() is implemented using tvtohz(9), which always returns a
positive value since it adds the current tick to its result. This differs
from the behaviour in Linux, whose implementation does not add the extra
tick, so subtract the extra tick in the OFED compat layer implementation.
This addresses some incorrect handling of IB MAD timeouts, since some IB
code depends on msecs_to_jiffies(0) returning 0.

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

Details

Provenance
markjAuthored on
Parents
rS282742: Prepare for supporting driver-overridden curchan when submitting scan
Branches
Unknown
Tags
Unknown