Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp910295ybx; Thu, 31 Oct 2019 02:52:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbs98eN2GdiaeZIpnDi1tkWhN2pSnIWeBK3ELwt33niE2hv6O19ofu2qwH54abFBuW4FOE X-Received: by 2002:a17:906:34c8:: with SMTP id h8mr2862743ejb.135.1572515562861; Thu, 31 Oct 2019 02:52:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572515562; cv=none; d=google.com; s=arc-20160816; b=sE8ymiLTeLRrVEHuTNwPQYgNAbE5EV/uaeQVeZA5SqvOtEgiH1ThZq+oi93W+ZdECT u8kECfyvaaNxE7ATUidvLfNdJx5LdP79sK4gR4DbVXMUtvcIb+1ByA7WgMqBBgOHtqGT 0jBbeLZHhSi5IlMg2y8YGQByvYeC3MFraKdrT9qv4o7sh7bS7Ip6muejtpApPPX7O4bo bgZjvoBFUMuPRKKH6LWgX83vFqBBGIeBF4LxB/ki3ItYdaMZP8UZ1mlPIlYET3GiUHNE BsNUHW3DsMg1M6ZZqPvGWOYhpcMYKpkmspMWpGx+yFhHM++UH95J7mEQ3CYkvcNOz3wd BWyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=hI0VQoeai7uAgPaIHh8RVPLbPnA7ahO84LtHH9+LYjM=; b=GbtzxCjrXyVbEO91co0xEjRPyjekuEfYrp6I3/VuC7dIOQEr5nWU/bz2GZETgePoMW qonafQeIQxwEuiuupBb69+GBeW1qvSEejKOun1478dI1UJlPFMUD3RI3fqpoajQ+so8o 9xdwSH5MKDQ1vAW3DIN27nT8wU9l5hOBu0QUslwOgya0RO7/n5PtDNaQ9zLXSWIqr341 zu73Gvd5alPvvnWQWChuhZ9NY1ovCvWmOM5e7btBarrcxQeleAkP0AseXcwYW5erJ3YC EfjbTP3oLK93EnkLz2te0sCKXtVYXvZS69uOKdZ0s/l/EeN3H1JlURf2s9AObq5dYkAw UxLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f24si3711932edf.15.2019.10.31.02.52.18; Thu, 31 Oct 2019 02:52:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727231AbfJaJtD (ORCPT + 99 others); Thu, 31 Oct 2019 05:49:03 -0400 Received: from smtp07.smtpout.orange.fr ([80.12.242.129]:26180 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726913AbfJaJtD (ORCPT ); Thu, 31 Oct 2019 05:49:03 -0400 Received: from [192.168.42.210] ([93.23.12.90]) by mwinf5d66 with ME id L9ox2100X1waAWt039oxcA; Thu, 31 Oct 2019 10:49:01 +0100 X-ME-Helo: [192.168.42.210] X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Thu, 31 Oct 2019 10:49:01 +0100 X-ME-IP: 93.23.12.90 Subject: Re: [PATCH] vsock: Simplify '__vsock_release()' To: Sergei Shtylyov , davem@davemloft.net, sunilmut@microsoft.com, willemb@google.com, sgarzare@redhat.com, stefanha@redhat.com, ytht.net@gmail.com, arnd@arndb.de, tglx@linutronix.de, decui@microsoft.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org References: <20191031064741.4567-1-christophe.jaillet@wanadoo.fr> From: Christophe JAILLET Message-ID: <1b33ca33-a02b-1923-cbee-814e520b9700@wanadoo.fr> Date: Thu, 31 Oct 2019 10:48:53 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 31/10/2019 à 10:36, Sergei Shtylyov a écrit : > Hello! > > On 31.10.2019 9:47, Christophe JAILLET wrote: > >> Use '__skb_queue_purge()' instead of re-implementing it. > >    In don't see that double underscore below... This is a typo in the commit message. There is no need for __ because skb_dequeue was used. Could you fix it directly in the commit message (preferred solution for me) or should I send a V2? CJ >> Signed-off-by: Christophe JAILLET >> --- >>   net/vmw_vsock/af_vsock.c | 4 +--- >>   1 file changed, 1 insertion(+), 3 deletions(-) >> >> diff --git a/net/vmw_vsock/af_vsock.c b/net/vmw_vsock/af_vsock.c >> index 2ab43b2bba31..2983dc92ca63 100644 >> --- a/net/vmw_vsock/af_vsock.c >> +++ b/net/vmw_vsock/af_vsock.c > [...] >> @@ -662,8 +661,7 @@ static void __vsock_release(struct sock *sk, int >> level) >>           sock_orphan(sk); >>           sk->sk_shutdown = SHUTDOWN_MASK; >>   -        while ((skb = skb_dequeue(&sk->sk_receive_queue))) >> -            kfree_skb(skb); >> +        skb_queue_purge(&sk->sk_receive_queue); >>             /* Clean up any sockets that never were accepted. */ >>           while ((pending = vsock_dequeue_accept(sk)) != NULL) { > > MBR, Sergei >