Richard Weinberger <richard.weinber...@gmail.com> writes:
> On Sat, Apr 2, 2022 at 4:23 PM Philippe Gerum via Xenomai > <xenomai@xenomai.org> wrote: > >> - arch_dovetail_switch_finish(leave_inband); >> + ti_work = READ_ONCE(current_thread_info()->flags); >> + arch_dovetail_switch_finish(leave_inband, ti_work); > > Why are you passing ti_work as parameter? AFAIU you can > use current_thread_info()->flags directly in arch_dovetail_switch_finish(). Agreed, this affects the signature of arch_dovetail_switch_finish() for no good reason. Besides, this patch is missing a case (task resuming after oob -> inband transition). v2 follows (tested ok here). -- Philippe.