Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1248771
| From | Heiko Carstens <heiko.carstens@de.ibm.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: futex timeout not working? (bisected) |
| Date | 2015-10-16 15:50 +0200 |
| Message-ID | <qkdyq-7XP-23@gated-at.bofh.it> (permalink) |
| References | (3 earlier) <qkaAx-3B7-7@gated-at.bofh.it> <qkaTU-3YR-41@gated-at.bofh.it> <qkbPY-5nh-1@gated-at.bofh.it> <qkcj0-6d1-21@gated-at.bofh.it> <qkcCm-6zl-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, Oct 16, 2015 at 02:45:37PM +0200, Thomas Gleixner wrote: > The only point I found which does not update the sequence count is > timekeeping_init(). > > Does the patch below fix your issue? > Yes, it does. Thanks for looking into this and fixing it! > 8<-------------------- > > diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c > index 3739ac6aa473..44d2cc0436f4 100644 > --- a/kernel/time/timekeeping.c > +++ b/kernel/time/timekeeping.c > @@ -1251,7 +1251,7 @@ void __init timekeeping_init(void) > set_normalized_timespec64(&tmp, -boot.tv_sec, -boot.tv_nsec); > tk_set_wall_to_mono(tk, tmp); > > - timekeeping_update(tk, TK_MIRROR); > + timekeeping_update(tk, TK_MIRROR | TK_CLOCK_WAS_SET); > > write_seqcount_end(&tk_core.seq); > raw_spin_unlock_irqrestore(&timekeeper_lock, flags); > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
futex timeout not working? (bisected) Heiko Carstens <heiko.carstens@de.ibm.com> - 2015-10-15 12:50 +0200
Re: futex timeout not working? (bisected) Thomas Gleixner <tglx@linutronix.de> - 2015-10-16 12:30 +0200
Re: futex timeout not working? (bisected) Thomas Gleixner <tglx@linutronix.de> - 2015-10-16 12:40 +0200
Re: futex timeout not working? (bisected) Heiko Carstens <heiko.carstens@de.ibm.com> - 2015-10-16 13:00 +0200
Re: futex timeout not working? (bisected) Heiko Carstens <heiko.carstens@de.ibm.com> - 2015-10-16 14:00 +0200
Re: futex timeout not working? (bisected) Thomas Gleixner <tglx@linutronix.de> - 2015-10-16 14:30 +0200
Re: futex timeout not working? (bisected) Thomas Gleixner <tglx@linutronix.de> - 2015-10-16 14:50 +0200
Re: futex timeout not working? (bisected) Heiko Carstens <heiko.carstens@de.ibm.com> - 2015-10-16 15:50 +0200
Re: futex timeout not working? (bisected) Heiko Carstens <heiko.carstens@de.ibm.com> - 2015-10-16 12:40 +0200
Re: futex timeout not working? (bisected) Heiko Carstens <heiko.carstens@de.ibm.com> - 2015-10-16 12:40 +0200
Re: futex timeout not working? (bisected) Thomas Gleixner <tglx@linutronix.de> - 2015-10-16 12:40 +0200
csiph-web