From: Daniel Borkmann Date: Tue, 08 Apr 2014 16:23:50 +0000 Subject: Re: [PATCH net] net: sctp: wake up all assocs if sndbuf policy is per socket Message-Id: <53442296.6000908@redhat.com> List-Id: References: <1396964037-13245-1-git-send-email-dborkman@redhat.com> <53440A90.2030501@gmail.com> <53440D33.2000809@redhat.com> <53441531.8030009@gmail.com> In-Reply-To: <53441531.8030009@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Vlad Yasevich Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-sctp@vger.kernel.org, Thomas Graf , Neil Horman On 04/08/2014 05:26 PM, Vlad Yasevich wrote: ... > This is yet another list traversal with skip_head. I am going to > resurrect that code for net-next. Sounds good! I actually had a look longer time ago, to squeeze all that logic into a list macro, but so far I didn't find something clean without appending an if-clause to it that tests for head element - and that I don't like as it can happen that unintentionally users could run into a dangling else. In the end it all looked more complicated than the current code was, so I wasn't really satisfied and therefore didn't post a patch. ;) Cheers, Daniel