mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
timerfd_read(): stop setting td_rtcgen
The sleep is not time-bound. More, setting td_rtcgen and not clearing it would cause future sleeps to be spuriously interrupted. Reviewed by: imp, markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D51836
This commit is contained in:
parent
4046ad6bb0
commit
e8b37e7545
1 changed files with 0 additions and 1 deletions
|
|
@ -206,7 +206,6 @@ retry:
|
|||
mtx_unlock(&tfd->tfd_lock);
|
||||
return (EAGAIN);
|
||||
}
|
||||
td->td_rtcgen = atomic_load_acq_int(&rtc_generation);
|
||||
error = mtx_sleep(&tfd->tfd_count, &tfd->tfd_lock,
|
||||
PCATCH, "tfdrd", 0);
|
||||
if (error == 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue