diff options
author | Byungchul Park <[email protected]> | 2017-05-12 09:36:56 +0900 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2017-05-23 10:01:33 +0200 |
commit | d714893e61cd8c6e5c7e095f7dd615aa434bca95 (patch) | |
tree | acaaf82534428946d0bb54a61e401df443db32cc /lib/netdev-notifier-error-inject.c | |
parent | 6c8557bdb28df3ae97476c5e2aed6373cd235aab (diff) |
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 <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Huang, Ying <[email protected]>
Cc: <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions