Message ID | 20240108183938.468426-1-verdre@v0yd.nl |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-19980-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp1205282dyq; Mon, 8 Jan 2024 10:40:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IHGqT7jdY4mGM6+TlOsFItX4uLoMm1xTV8B1cttAdvxfllK1nAXJhx8pR6d6pud4cl5a/5i X-Received: by 2002:a2e:3516:0:b0:2cc:79d1:29e with SMTP id z22-20020a2e3516000000b002cc79d1029emr1647326ljz.21.1704739213745; Mon, 08 Jan 2024 10:40:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704739213; cv=none; d=google.com; s=arc-20160816; b=RyWOYA0x7Wzs1QiOzF0iKt+a1vpDM33+9T6fELFcifKw1DehiZ4feuE0XbwygkEVXW tbof2s+R+aw+sA7u37de4q4Lo7LUdzcNaRoU5NhXvSAD1DKNyVlaiZVQVr4Q08sOxu6d n602hSeajBQudK2kpFcQTXY1hQL8uj1kemPOc5poRqpoAl2ldGj7IECvAcwiW3pl2tkL wddwnpw2kFifmLoevjqTRNyH7P6wU7jhemMjUakjfN4aP1TFkuj7uThX5zw7yp44+YTI coNHHnpzDE2TMFRAdNZuYEeIaeAxnlMGdJcCuW5lkg7aosqP1UUI13YrKEs+5ZEIieiL Mviw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=SMK/wSd6d/Jmc+GAE8QusKMi/OIZjE6aD2/POvitZgM=; fh=3AqDzvZy8BuFcn015+g5AB3sGQnZc/edyFwniXfpO+U=; b=Jvux0FyJfGkN4UckFyXtKtyl7QqA4yH50Node4qUlM8XJRoUtux0+qgr8E8qxti21V rCdAE3LCZalYgR0/DBLwmZpQX/PIV3wZbZZi33Zv/IGFVRGIIRJIl+Vw1o7hXpwZqXcS izESKergQHj86ERILXYMClJYC6li1S7E3rPyayEQC5fRKAIyECZSZHKibtZ+nHmYcTEi 5nj9lg/R2b4xKkz5IixvHfVPuiDq6qRxpXzmnXPrm3yX9nPek5uSNLt0u8NV+ODwqAeD I/Ugj+nSrlOSGVfBD2EIQK81tfhRIYaGXiSAA66uO5jQaHq7JhShVC5NbfmPnFN4ShlM NPKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-19980-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19980-ouuuleilei=gmail.com@vger.kernel.org" Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i13-20020a05640242cd00b00552601bc292si100442edc.391.2024.01.08.10.40.13 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 10:40:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19980-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-19980-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19980-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 557421F23C7B for <ouuuleilei@gmail.com>; Mon, 8 Jan 2024 18:40:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F31AB54FAE; Mon, 8 Jan 2024 18:39:51 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5CB0D54F83; Mon, 8 Jan 2024 18:39:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=v0yd.nl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=v0yd.nl Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4T82sq1N58z9sch; Mon, 8 Jan 2024 19:39:43 +0100 (CET) From: =?utf-8?q?Jonas_Dre=C3=9Fler?= <verdre@v0yd.nl> To: Marcel Holtmann <marcel@holtmann.org>, Johan Hedberg <johan.hedberg@gmail.com>, Luiz Augusto von Dentz <luiz.dentz@gmail.com> Cc: =?utf-8?q?Jonas_Dre=C3=9Fler?= <verdre@v0yd.nl>, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v2 0/4] Bluetooth: Improve retrying of connection attempts Date: Mon, 8 Jan 2024 19:39:32 +0100 Message-ID: <20240108183938.468426-1-verdre@v0yd.nl> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787548625499727756 X-GMAIL-MSGID: 1787548625499727756 |
Series |
Bluetooth: Improve retrying of connection attempts
|
|
Message
Jonas Dreßler
Jan. 8, 2024, 6:39 p.m. UTC
Since commit 4c67bc74f016 ("[Bluetooth] Support concurrent connect requests"), the kernel supports trying to connect again in case the bluetooth card is busy and fails to connect. The logic that should handle this became a bit spotty over time, and also cards these days appear to fail with more errors than just "Command Disallowed". This series refactores the handling of concurrent connection requests by serializing all "Create Connection" commands for ACL connections similar to how we do it for LE connections. --- v1: https://lore.kernel.org/linux-bluetooth/20240102185933.64179-1-verdre@v0yd.nl/ v2: - Move to using hci_sync queue for "Create Connection" and therefore always serialize those requests. - Follow commit message style better and properly cite patches Jonas Dreßler (4): Bluetooth: Remove superfluous call to hci_conn_check_pending() Bluetooth: hci_event: Use HCI error defines instead of magic values Bluetooth: hci_conn: Only do ACL connections sequentially Bluetooth: Remove pending ACL connection attempts include/net/bluetooth/hci.h | 3 ++ include/net/bluetooth/hci_core.h | 1 - net/bluetooth/hci_conn.c | 51 ++++++++++++++++---------------- net/bluetooth/hci_event.c | 29 +++++------------- 4 files changed, 35 insertions(+), 49 deletions(-)