[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1460223075.6473.499.camel@edumazet-glaptop3.roam.corp.google.com>
Date: Sat, 09 Apr 2016 10:31:15 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Xin Long <lucien.xin@...il.com>
Cc: network dev <netdev@...r.kernel.org>, linux-sctp@...r.kernel.org,
Marcelo Ricardo Leitner <marcelo.leitner@...il.com>,
Vlad Yasevich <vyasevich@...il.com>, daniel@...earbox.net,
davem <davem@...emloft.net>
Subject: Re: [PATCHv2 net-next 1/6] sctp: add sctp_info dump api for
sctp_diag
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.
Powered by blists - more mailing lists