Re: [PATCH net] sctp: Hold RCU read lock while iterating over address list
Stefan Wiehler <[email protected]>
| Newsgroups | org.kernel.vger.linux-sctp,org.kernel.vger.linux-kernel,org.kernel.vger.netdev |
|---|---|
| Organization | Nokia |
| Message-ID | <[email protected]> |
> Or if lock_sock() is enough, we should use the plain > list_for_each_entry(), or list_for_each_entry_rcu() with > lockdep_sock_is_held() as the 4th arg. Right, I've already hinted in the commit comment that lock_sock() might be enough, but I'm not sure about it... @Xin Long, as you're the author and have already acked, I suppose we actually need to hold the RCU read lock?