Re: [ANNOUNCE] v5.14-rc4-rt4

From
Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date
2021-08-04 16:22:38
Also in
lkml
Reply to
Steven Rostedt, 2021-08-04
On 2021-08-04 12:17:04 [-0400], Steven Rostedt wrote:
Perhaps in this situation, we could open code it to:

  	if (stall_hash != -1U) {
		raw_spin_unlock(&wqe->lock);

		/* On RT the spin_lock_irq() does not disable interrupts */
		if (IS_ENABLED(CONFIG_PREEMPT_RT))
			local_irq_enable();
no preemption happens here with NEED_RESCHED set.
 		io_wait_on_hash(wqe, stall_hash);

		if (IS_ENABLED(CONFIG_PREEMPT_RT))
			local_irq_disable();
		raw_spin_lock(&wqe->lock);
 	}

Note, I haven't looked at the rest of the code to know the ripple
effect of this, but I'm just suggesting the idea.
Sebastian
Thread (30 messages) 30 messages, 6 authors, last reply 2021-08-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help