summaryrefslogtreecommitdiffstats
path: root/kernel/sched
diff options
context:
space:
mode:
authorByungchul Park <byungchul.park@lge.com>2017-05-12 02:36:56 +0200
committerIngo Molnar <mingo@kernel.org>2017-05-23 10:01:33 +0200
commitd714893e61cd8c6e5c7e095f7dd615aa434bca95 (patch)
treeacaaf82534428946d0bb54a61e401df443db32cc /kernel/sched
parentsmp, cpumask: Use non-atomic cpumask_{set,clear}_cpu() (diff)
downloadlinux-d714893e61cd8c6e5c7e095f7dd615aa434bca95.tar.xz
linux-d714893e61cd8c6e5c7e095f7dd615aa434bca95.zip
llist: Provide a safe version for llist_for_each()
Sometimes we have to dereference next field of llist node before entering loop becasue the node might be deleted or the next field might be modified within the loop. So this adds the safe version of llist_for_each(), that is, llist_for_each_safe(). Signed-off-by: Byungchul Park <byungchul.park@lge.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Huang, Ying <ying.huang@intel.com> Cc: <kernel-team@lge.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1494549416-10539-1-git-send-email-byungchul.park@lge.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched')
0 files changed, 0 insertions, 0 deletions