Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1876547rwb; Wed, 26 Jul 2023 21:36:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlHtqRBfJt5jLAbpxd9oHV0ZrJn9gZonmbWbudMvKdY9TmVQTv6CTluLiSxrwOneZWDSLMkQ X-Received: by 2002:a05:6a00:1ad3:b0:682:5634:3df1 with SMTP id f19-20020a056a001ad300b0068256343df1mr5102532pfv.10.1690432602155; Wed, 26 Jul 2023 21:36:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690432602; cv=none; d=google.com; s=arc-20160816; b=0DSCSOx39HMo+nvRQr50MNeVzmodUZDOjXazS1TXkDdnYsyhw2cqa9SYnp8SoN0HG7 Ac8KzzIsBVRUWM+sXXOO36Bms9VJKoFOoQok458R8zdcsr4oaXFMmnaAEawfT0/ahpu2 /HzmYz2akNnliLbnsfvkIQ3Mr0tjOp4tBqq7Hus1yoyRZUwLtdpVcCeZNERWp6sL5/gd x4X0T31o4wc7nBM/jyMeX8aJgB0nyCidqFRkaX//nQxuex9/kRYtKFFBepfgsPgkAsmQ 2Fp8KYy9JZeAtPfbgnb2zmQKFq44oEehKhHecMObQxbPVOA6h5Vx7m8gE1a5JGxCqB/j 3DZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:cc :content-language:references:to:subject:from:user-agent:mime-version :date:message-id; bh=7qZ+X4EkftX+y88gzfaS+sPgzk2HBl9mkxJoPxR6uPQ=; fh=EKmAOX/XbtaG2oi7qkG6fvheZTdmbY0l1e0kWY7ktY8=; b=pozTNjScNol7T1Sqwe0pw/6jhgP60R76RTNYIG0G3LakcsVW1JpUsz95gBgWlGdY9T /CNfa++7FJ83n6KA3kE0OnDVXj95AvQU36PuQ5tFXxkzAYNMZ8x7Ue4rqnwTJtLxxIR+ yPmd+cHnSoyE0FyItwVXzXBoDH2PcYzyQ7PqvLJeR8L98sPgpZrhsO/Hwa1ExgZjKmjv PSAliRcWiqhKCfmB9GPsd3fYQXH3bTp6aQKbEWLoTp9snUasnj+g8c/9KxpOpqOY5vES lApQXYuT1oUeCwB0ZtPMR12E2jLSePbMAyCcVCIM3tCIDF3q8KeuPIKEghp4uNb7ezZD 0DBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d23-20020a63f257000000b00553b02a9a1asi484123pgk.249.2023.07.26.21.36.17; Wed, 26 Jul 2023 21:36:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230106AbjG0EOf (ORCPT + 99 others); Thu, 27 Jul 2023 00:14:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229622AbjG0EOd (ORCPT ); Thu, 27 Jul 2023 00:14:33 -0400 Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F272626B8 for ; Wed, 26 Jul 2023 21:14:31 -0700 (PDT) Received: from [192.168.0.2] (ip5f5ae953.dynamic.kabel-deutschland.de [95.90.233.83]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id E6C1361E5FE01; Thu, 27 Jul 2023 06:14:24 +0200 (CEST) Message-ID: Date: Thu, 27 Jul 2023 06:14:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.1 From: Paul Menzel Subject: Re: [PATCH RFC 1/6] Bluetooth: hci_conn: hci_conn_cleanup is not needed, combine with del To: Pauli Virtanen References: <30c5e6a7dc62ce209a2b9916fe8b2579d1b27756.1690399379.git.pav@iki.fi> Content-Language: en-US Cc: linux-bluetooth@vger.kernel.org In-Reply-To: <30c5e6a7dc62ce209a2b9916fe8b2579d1b27756.1690399379.git.pav@iki.fi> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Dear Pauli, Thank you for your patch. You might want to make the commit message summary a statement about the action. Maybe: Combine unneeded hci_conn_cleanup() with hci_conn_del() Am 26.07.23 um 23:25 schrieb Pauli Virtanen: > hci_conn_cleanup is no longer needed, so move the code back to Why is it no longer needed? > hci_conn_del to keep the hci_conn teardown in a single place. > > This undoes commit b958f9a3e877 ("Bluetooth: Fix reference counting for > LE-scan based connections"), but keeps the current order of cleanup > operations. > > Signed-off-by: Pauli Virtanen > --- > net/bluetooth/hci_conn.c | 78 +++++++++++++++++----------------------- > 1 file changed, 33 insertions(+), 45 deletions(-) […] Kind regards, Paul