RE: [PATCH -rt] Preemption problem in kernel RT Patch

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Beauchemin, Mark
Date: Tuesday, July 24, 2007 - 12:36 pm

Ingo,


	That makes sense.  It doesn't seem right that it gets called 
recursive in the first place.  I'm not sure, however, if the tunnel 
code can help it as it uses ip_output to send packets.


I've downloaded .23-rc1-rt0.  It appears the issue remains in both places
as seen below:


net/core/dev.c:  dev_queue_xmit

#ifdef CONFIG_PREEMPT_RT
		if (1) {
#else
		int cpu = raw_smp_processor_id(); /* ok because BHs are off */

		if (dev->xmit_lock_owner != cpu) {
#endif


and net/sched/sch_generic.c: qdisc_restart

#ifdef CONFIG_PREEMPT_RT
		netif_tx_lock(dev);
#else
		if (netif_tx_trylock(dev))
			/* Another CPU grabbed the driver tx lock */
			return handle_dev_cpu_collision(skb, dev, q);
#endif

	Mark

	

-----Original Message-----
From: Ingo Molnar [mailto:mingo@elte.hu]
Sent: Tuesday, July 24, 2007 3:15 PM
To: Beauchemin, Mark
Cc: Thomas Gleixner; linux-kernel@vger.kernel.org; David Miller
Subject: Re: [PATCH -rt] Preemption problem in kernel RT Patch



* Beauchemin, Mark <Mark.Beauchemin@sycamorenet.com> wrote:


ah ... i think i did it like that because i didnt realize that there 
would be a recursive call sequence, i was concentrating on recursive 
locking.

incidentally, this code got cleaned up in .23-rc1-rt0, and now it looks 
quite similar to your suggested fix. Could you double-check that it 
solves your problem?

	Ingo


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH -rt] Preemption problem in kernel RT Patch, Beauchemin, Mark, (Thu Jun 21, 12:39 pm)
Re: [PATCH -rt] Preemption problem in kernel RT Patch, Thomas Gleixner, (Fri Jun 22, 1:03 am)
RE: [PATCH -rt] Preemption problem in kernel RT Patch, Beauchemin, Mark, (Sat Jun 23, 7:08 am)
RE: [PATCH -rt] Preemption problem in kernel RT Patch, Thomas Gleixner, (Sat Jun 23, 7:26 am)
RE: [PATCH -rt] Preemption problem in kernel RT Patch, Beauchemin, Mark, (Tue Jul 24, 8:48 am)
Re: [PATCH -rt] Preemption problem in kernel RT Patch, Ingo Molnar, (Tue Jul 24, 12:15 pm)
RE: [PATCH -rt] Preemption problem in kernel RT Patch, Beauchemin, Mark, (Tue Jul 24, 12:36 pm)
RE: [PATCH -rt] Preemption problem in kernel RT Patch, Beauchemin, Mark, (Wed Aug 1, 7:15 am)
RE: [PATCH -rt] Preemption problem in kernel RT Patch, Beauchemin, Mark, (Wed Aug 1, 7:22 am)
Re: [PATCH -rt] Preemption problem in kernel RT Patch, Ingo Molnar, (Mon Aug 6, 12:13 am)
RE: [PATCH -rt] Preemption problem in kernel RT Patch, Beauchemin, Mark, (Tue Aug 7, 12:41 pm)
RE: [PATCH -rt] Preemption problem in kernel RT Patch, Beauchemin, Mark, (Mon Sep 17, 6:03 am)
Re: [PATCH -rt] Preemption problem in kernel RT Patch, Ingo Molnar, (Mon Sep 17, 6:59 am)