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

- From: Sebastian Andrzej Siewior \<bigeasy@linutronix.de\>
- Date: 2021-08-04 16:22:38 
- List: linux-rt-users
- Page: https://ratatoskr.run/linux-rt-users/2021/08/1467912
- Thread: https://ratatoskr.run/linux-rt-users/2021/08/1465551/t.md

```text
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
```
