Roman, > I have an idea what might have happened. You don't advance the pending > state, if the signal isn't queued, so that the pending state is screwed up > afterwards. Although I don't see how it could crash the kernel (it has > only the potential to mess up the timer queue via hrtimer_forward() a > bit), but I don't know what other patches were applied. Good catch, but I dont see how it would trigger the bug. > For example no current user restarts an active timer, which could be used > to simplify the locking. How does this simplify the locking ? It just removes the hrtimer_cancel() call in hrtimer_start() and makes the switch_hrtimer_base() code a bit simpler. The general locking rules would be still the same and I dont see increased flexibility at all. > If we tightened a bit what a user is allowed to > do, we could gain flexibility on the other side, e.g. allow drivers to > create timer sources or how to integrate cpu timer. -ENOPARSE. Can you please explain what "allow drivers to create timer sources" means and why the above locking is in the way ? tglx - 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/
- Follow-Ups:
- Re: [patch 5/8] hrtimer remove state field
- From: Roman Zippel <zippel@linux-m68k.org>
- Re: [patch 5/8] hrtimer remove state field
- References:
- [patch 0/8] hrtimer updates
- From: Thomas Gleixner <tglx@linutronix.de>
- [patch 5/8] hrtimer remove state field
- From: Thomas Gleixner <tglx@linutronix.de>
- Re: [patch 5/8] hrtimer remove state field
- From: Roman Zippel <zippel@linux-m68k.org>
- Re: [patch 5/8] hrtimer remove state field
- From: Thomas Gleixner <tglx@linutronix.de>
- Re: [patch 5/8] hrtimer remove state field
- From: Roman Zippel <zippel@linux-m68k.org>
- Re: [patch 5/8] hrtimer remove state field
- From: Thomas Gleixner <tglx@linutronix.de>
- Re: [patch 5/8] hrtimer remove state field
- From: Roman Zippel <zippel@linux-m68k.org>
- Re: [patch 5/8] hrtimer remove state field
- From: Thomas Gleixner <tglx@linutronix.de>
- Re: [patch 5/8] hrtimer remove state field
- From: Roman Zippel <zippel@linux-m68k.org>
- Re: [patch 5/8] hrtimer remove state field
- From: Thomas Gleixner <tglx@linutronix.de>
- Re: [patch 5/8] hrtimer remove state field
- From: Roman Zippel <zippel@linux-m68k.org>
- Re: [patch 5/8] hrtimer remove state field
- From: Thomas Gleixner <tglx@linutronix.de>
- Re: [patch 5/8] hrtimer remove state field
- From: Roman Zippel <zippel@linux-m68k.org>
- Re: [patch 5/8] hrtimer remove state field
- From: Thomas Gleixner <tglx@linutronix.de>
- Re: [patch 5/8] hrtimer remove state field
- From: Roman Zippel <zippel@linux-m68k.org>
- [patch 0/8] hrtimer updates
- Prev by Date: Re: Which kernel is the best for a small linux system?
- Next by Date: Re: [patch 1/4] natsemi: Add support for using MII port with no PHY
- Previous by thread: Re: [patch 5/8] hrtimer remove state field
- Next by thread: Re: [patch 5/8] hrtimer remove state field
- Index(es):
![]() |