On Sun, 2016-04-10 at 00:10 +0800, Xin Long wrote: > 1. sctp_diag_dump_one -> sctp_transport_lookup_process-> sctp_tsp_dump_one > this one just holds the tsp. and we're using list_for_each_safe here now, > isn't it enough ?
list_for_each_safe is 'safe' if you do a list_del() yourself. It is not safe if other cpus are adding/deleting items in the list while this thread is iterating it.