On Fri, 26 Aug 2022, Linus Torvalds wrote: > That code sequence really doesn't matter, but it was interesting > seeing the generated code. Not pretty, but the ugliest part was > actually how the might_sleep() calls in those helper functions result > in __cond_resched() when PREEMPT_VOLUNTARY is on, and how horrid that > is for register allocation. Perhaps, use __attribute__((no_caller_saved_registers)) on __cond_resched() ? Mikulas