Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

unwind: Simplify unwind_user_faultable()

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20250924080119.271671514@infradead.org

+6 -9
+6 -9
kernel/unwind/deferred.c
··· 128 128 129 129 cache = info->cache; 130 130 trace->entries = cache->entries; 131 - 132 - if (cache->nr_entries) { 133 - /* 134 - * The user stack has already been previously unwound in this 135 - * entry context. Skip the unwind and use the cache. 136 - */ 137 - trace->nr = cache->nr_entries; 131 + trace->nr = cache->nr_entries; 132 + /* 133 + * The user stack has already been previously unwound in this 134 + * entry context. Skip the unwind and use the cache. 135 + */ 136 + if (trace->nr) 138 137 return 0; 139 - } 140 138 141 - trace->nr = 0; 142 139 unwind_user(trace, UNWIND_MAX_ENTRIES); 143 140 144 141 cache->nr_entries = trace->nr;