HomeFreeBSD

Upstream: zil_commit_waiter() can stall forever

Description

Upstream: zil_commit_waiter() can stall forever

On macOS clock_t is unsigned, so when cv_timedwait_hires() returns -1
we loop forever. The conditional was tweaked to ignore signedness.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Jorgen Lundman <lundman@lundman.net>
Closes #10445

Details

Provenance
Jorgen Lundman <lundman@lundman.net>Authored on Jun 14 2020, 5:08 PM
GitHub <noreply@github.com>Committed on Jun 14 2020, 5:08 PM
Parents
rGf2edc0078fe1: Fix gcc10.1 truncation error
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG4f73576ea15f: Upstream: zil_commit_waiter() can stall forever (authored by Jorgen Lundman <lundman@lundman.net>).Jun 14 2020, 5:08 PM