Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7110730ybi; Thu, 13 Jun 2019 09:43:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbo4ROjtLkWO4sIG8QELVpItPeOo8KnphmEVg1HgSjj9yNvTn4Zg7VIpFDqoWocnn8H5Fu X-Received: by 2002:a63:480a:: with SMTP id v10mr4839890pga.60.1560444235744; Thu, 13 Jun 2019 09:43:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560444235; cv=none; d=google.com; s=arc-20160816; b=uKPrlkkujKZb9q4vjeGqnGK/GJrWf026txAAWNieoK0upBqG1HHtzwyjGSPrJI3ZR7 CAjMULOZ4OlNiuKyMJ0WYZEIxJ4c7L7UCoVJixTGT+oURLBiKVE+NQ8mpJXNsuZlePrv 8QvgweorCY0HjbPSOH6Mroff7hLo1ggddxzqjImB3Znq6daMXNpcRYj5Il9W/vFBvxAU 6FsDE6Y0K/CfB8rWemspMt/4220u/hhOg6c5X8DfCVW/PIxn+1J6qzot7w3yE1gRoCUC T18cWUoYVdo1ZGcvV8PdyJezh5/vouCKSGldTDqVK4E+wnAM8bPSx4hkUar4rtMDHqu2 L51w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=BvVv2Hzg5yXsAjnVZ8DjXyE47NBSk27MZ3hY5rFv3iA=; b=a5pKNgWQJ6Y/ww0YHKKj4bkW/Q1luCoYaMQhdQV6Vq46v33ZomKEBVJMNoOEHFpo53 ODywiODceP510Q7ORKTIMqgawDc0EDm8TRoGoVQzMEMB7QoGfObka3UNIba6LmJmsZ71 miLBxpXdL23Ideg+4dvb/qE+/j0JquEn/Ccv8mb3c1ZHQuT2AlOKXjaG9GvgFwfPxhyx 4Fjp8YOnY6JdqVeMhHj08/TfntFPyX1rhc/+gpKEsuxKhTi6rdDYR4dIUC6FkNX5Mil+ s9gA0RBONa9aE9qIqkwDrS93OgL5GOyTKXNBytFMp2Kcuvvv4ia/uZAJ3q5gN2+rkmB8 1Vsg== 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 y2si202370pgh.524.2019.06.13.09.43.41; Thu, 13 Jun 2019 09:43:55 -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 S2392858AbfFMQng (ORCPT + 99 others); Thu, 13 Jun 2019 12:43:36 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:36592 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730456AbfFMGen (ORCPT ); Thu, 13 Jun 2019 02:34:43 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 136856DBF8070409289A; Thu, 13 Jun 2019 14:34:39 +0800 (CST) Received: from [127.0.0.1] (10.177.96.96) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.439.0; Thu, 13 Jun 2019 14:34:37 +0800 Subject: Re: [PATCH net v2] tcp: avoid creating multiple req socks with the same tuples To: David Miller References: <20190612035715.166676-1-maowenan@huawei.com> <20190612.092507.915453305221203158.davem@davemloft.net> CC: , , From: maowenan Message-ID: <2d3d6b84-acaa-b98a-8454-96546fbe012d@huawei.com> Date: Thu, 13 Jun 2019 14:34:37 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20190612.092507.915453305221203158.davem@davemloft.net> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.96.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/6/13 0:25, David Miller wrote: > From: Mao Wenan > Date: Wed, 12 Jun 2019 11:57:15 +0800 > >> diff --git a/net/ipv4/inet_hashtables.c b/net/ipv4/inet_hashtables.c >> index c4503073248b..b6a1b5334565 100644 >> --- a/net/ipv4/inet_hashtables.c >> +++ b/net/ipv4/inet_hashtables.c >> @@ -477,6 +477,7 @@ bool inet_ehash_insert(struct sock *sk, struct sock *osk) >> struct inet_ehash_bucket *head; >> spinlock_t *lock; >> bool ret = true; >> + struct sock *reqsk = NULL; > > Please preserve the reverse christmas tree local variable ordering here. ok, thanks. > > Thank you. > > . >