HomeFreeBSD

Fix module probe failure on 32-bit systems

Description

Fix module probe failure on 32-bit systems

Previous commit 7ef5e54e2e28884a04dc800657967b891239e933 caused
module probe failure on 32-bit systems, dmesg showed

Unknown symbol __moddi3

This was caused by the modulo operation 'gethrtime() % tqs->stqs_count'
in the committed code. Instead of implementing __moddi3 for all 32-bit
systems, Behlendorf advised we can just cast the return value of
gethrtime() into a uint64_t, since gethrtime does not return negative
value on all circumstances we need not care about the potential overflow.

Signed-off-by: Ying Zhu <casualfisher@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1551

Details

Provenance
Ying Zhu <casualfisher@gmail.com>Authored on Jun 27 2013, 11:41 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 27 2013, 5:01 PM
Parents
rG88c283952f0b: Return -EOPNOTSUPP for ZFS_IOC_{GET|SET}FLAGS
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGc12936b141e7: Fix module probe failure on 32-bit systems (authored by Ying Zhu <casualfisher@gmail.com>).Jun 27 2013, 5:01 PM