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:
Konstantin Belousov 2025-08-09 01:49:28 +03:00
parent 4046ad6bb0
commit e8b37e7545

View file

@ -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) {