[Xenomai-core] [bug] vfree/kfree under hard IRQ locks

2005-12-11 Thread Jan Kiszka
Hi, I happened to stumble over this comment[1]. It made me curious, especially as it is not totally correct (the loop is executed in IRQ-off context, thus it *is* timecritical). While thinking about the possibility to convert the hard IRQ lock protection of kheapq into some Linux mutex or

Re: [Xenomai-core] [bug] vfree/kfree under hard IRQ locks

2005-12-11 Thread Philippe Gerum
Jan Kiszka wrote: Hi, I happened to stumble over this comment[1]. It made me curious, especially as it is not totally correct (the loop is executed in IRQ-off context, thus it *is* timecritical). Critical should be understood here in the sense that IRQs are off while the loop workload is

[Xenomai-core] Extensible heaps - needed for the future?

2005-12-11 Thread Jan Kiszka
Hi, I noticed that xnhead_extend() is not used at the moment [1], thus the whole extent management is redundent for now. Are there plans to use it in the future? Should we keep this feature? I'm asking as I still have the idea in my head of breaking up the heap service and introducing a generic

Re: [Xenomai-core] [bug] vfree/kfree under hard IRQ locks

2005-12-11 Thread Philippe Gerum
Jan Kiszka wrote: Philippe Gerum wrote: Jan Kiszka wrote: Hi, I happened to stumble over this comment[1]. It made me curious, especially as it is not totally correct (the loop is executed in IRQ-off context, thus it *is* timecritical). Critical should be understood here in the sense

Re: [Xenomai-core] [bug] vfree/kfree under hard IRQ locks

2005-12-11 Thread Jan Kiszka
Philippe Gerum wrote: Jan Kiszka wrote: Philippe Gerum wrote: Jan Kiszka wrote: Hi, I happened to stumble over this comment[1]. It made me curious, especially as it is not totally correct (the loop is executed in IRQ-off context, thus it *is* timecritical). Critical should be

Re: [Xenomai-core] [bug] vfree/kfree under hard IRQ locks

2005-12-11 Thread Philippe Gerum
Jan Kiszka wrote: Philippe Gerum wrote: Jan Kiszka wrote: Philippe Gerum wrote: Jan Kiszka wrote: Hi, I happened to stumble over this comment[1]. It made me curious, especially as it is not totally correct (the loop is executed in IRQ-off context, thus it *is* timecritical).

Re: [Xenomai-core] [bug] vfree/kfree under hard IRQ locks

2005-12-11 Thread Jan Kiszka
Philippe Gerum wrote: Jan Kiszka wrote: Philippe Gerum wrote: Jan Kiszka wrote: Philippe Gerum wrote: Jan Kiszka wrote: Hi, I happened to stumble over this comment[1]. It made me curious, especially as it is not totally correct (the loop is executed in IRQ-off context, thus it

Re: [Xenomai-core] Extensible heaps - needed for the future?

2005-12-11 Thread Jan Kiszka
Philippe Gerum wrote: Jan Kiszka wrote: Hi, I noticed that xnhead_extend() is not used at the moment [1], thus the whole extent management is redundent for now. Are there plans to use it in the future? Should we keep this feature? I'm asking as I still have the idea in my head of

Re: [Xenomai-core] [bug] vfree/kfree under hard IRQ locks

2005-12-11 Thread Philippe Gerum
Jan Kiszka wrote: Philippe Gerum wrote: Jan Kiszka wrote: Philippe Gerum wrote: Jan Kiszka wrote: Philippe Gerum wrote: Jan Kiszka wrote: Hi, I happened to stumble over this comment[1]. It made me curious, especially as it is not totally correct (the loop is executed in

[Xenomai-core] [bug] vfree/kfree under hard IRQ locks

2005-12-11 Thread Jan Kiszka
Hi, I happened to stumble over this comment[1]. It made me curious, especially as it is not totally correct (the loop is executed in IRQ-off context, thus it *is* timecritical). While thinking about the possibility to convert the hard IRQ lock protection of kheapq into some Linux mutex or

Re: [Xenomai-core] [bug] vfree/kfree under hard IRQ locks

2005-12-11 Thread Philippe Gerum
Jan Kiszka wrote: Hi, I happened to stumble over this comment[1]. It made me curious, especially as it is not totally correct (the loop is executed in IRQ-off context, thus it *is* timecritical). Critical should be understood here in the sense that IRQs are off while the loop workload is

Re: [Xenomai-core] [bug] vfree/kfree under hard IRQ locks

2005-12-11 Thread Jan Kiszka
Philippe Gerum wrote: Jan Kiszka wrote: Hi, I happened to stumble over this comment[1]. It made me curious, especially as it is not totally correct (the loop is executed in IRQ-off context, thus it *is* timecritical). Critical should be understood here in the sense that IRQs are off

[Xenomai-core] Extensible heaps - needed for the future?

2005-12-11 Thread Jan Kiszka
Hi, I noticed that xnhead_extend() is not used at the moment [1], thus the whole extent management is redundent for now. Are there plans to use it in the future? Should we keep this feature? I'm asking as I still have the idea in my head of breaking up the heap service and introducing a generic

Re: [Xenomai-core] [bug] vfree/kfree under hard IRQ locks

2005-12-11 Thread Philippe Gerum
Jan Kiszka wrote: Philippe Gerum wrote: Jan Kiszka wrote: Hi, I happened to stumble over this comment[1]. It made me curious, especially as it is not totally correct (the loop is executed in IRQ-off context, thus it *is* timecritical). Critical should be understood here in the sense

Re: [Xenomai-core] Extensible heaps - needed for the future?

2005-12-11 Thread Philippe Gerum
Jan Kiszka wrote: Hi, I noticed that xnhead_extend() is not used at the moment [1], thus the whole extent management is redundent for now. Are there plans to use it in the future? Should we keep this feature? I'm asking as I still have the idea in my head of breaking up the heap service and

Re: [Xenomai-core] [bug] vfree/kfree under hard IRQ locks

2005-12-11 Thread Jan Kiszka
Philippe Gerum wrote: Jan Kiszka wrote: Philippe Gerum wrote: Jan Kiszka wrote: Hi, I happened to stumble over this comment[1]. It made me curious, especially as it is not totally correct (the loop is executed in IRQ-off context, thus it *is* timecritical). Critical should be

Re: [Xenomai-core] [bug] vfree/kfree under hard IRQ locks

2005-12-11 Thread Philippe Gerum
Jan Kiszka wrote: Philippe Gerum wrote: Jan Kiszka wrote: Philippe Gerum wrote: Jan Kiszka wrote: Hi, I happened to stumble over this comment[1]. It made me curious, especially as it is not totally correct (the loop is executed in IRQ-off context, thus it *is* timecritical).

Re: [Xenomai-core] [bug] vfree/kfree under hard IRQ locks

2005-12-11 Thread Jan Kiszka
Philippe Gerum wrote: Jan Kiszka wrote: Philippe Gerum wrote: Jan Kiszka wrote: Philippe Gerum wrote: Jan Kiszka wrote: Hi, I happened to stumble over this comment[1]. It made me curious, especially as it is not totally correct (the loop is executed in IRQ-off context, thus it

Re: [Xenomai-core] Extensible heaps - needed for the future?

2005-12-11 Thread Jan Kiszka
Philippe Gerum wrote: Jan Kiszka wrote: Hi, I noticed that xnhead_extend() is not used at the moment [1], thus the whole extent management is redundent for now. Are there plans to use it in the future? Should we keep this feature? I'm asking as I still have the idea in my head of

Re: [Xenomai-core] [bug] vfree/kfree under hard IRQ locks

2005-12-11 Thread Philippe Gerum
Jan Kiszka wrote: Philippe Gerum wrote: Jan Kiszka wrote: Philippe Gerum wrote: Jan Kiszka wrote: Philippe Gerum wrote: Jan Kiszka wrote: Hi, I happened to stumble over this comment[1]. It made me curious, especially as it is not totally correct (the loop is executed in