* [PATCH BlueZ] shared/att: Don't keep retrying the same operation
@ 2023-10-03 18:42 Luiz Augusto von Dentz
2023-10-03 20:21 ` [BlueZ] " bluez.test.bot
2023-10-03 23:20 ` [PATCH BlueZ] " patchwork-bot+bluetooth
0 siblings, 2 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2023-10-03 18:42 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
If an operation has been retried already don't attempt to change the
security again.
---
src/shared/att.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/shared/att.c b/src/shared/att.c
index 85feead77d0f..62c884b65721 100644
--- a/src/shared/att.c
+++ b/src/shared/att.c
@@ -193,6 +193,7 @@ struct att_send_op {
uint8_t opcode;
void *pdu;
uint16_t len;
+ bool retry;
bt_att_response_func_t callback;
bt_att_destroy_func_t destroy;
void *user_data;
@@ -785,6 +786,12 @@ static bool handle_error_rsp(struct bt_att_chan *chan, uint8_t *pdu,
*opcode = rsp->opcode;
+ /* If operation has already been marked as retry don't attempt to change
+ * the security again.
+ */
+ if (op->retry)
+ return false;
+
/* Attempt to change security */
if (!change_security(chan, rsp->ecode))
return false;
@@ -798,6 +805,7 @@ static bool handle_error_rsp(struct bt_att_chan *chan, uint8_t *pdu,
DBG(att, "(chan %p) Retrying operation %p", chan, op);
chan->pending_req = NULL;
+ op->retry = true;
/* Push operation back to channel queue */
return queue_push_head(chan->queue, op);
--
2.41.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [BlueZ] shared/att: Don't keep retrying the same operation
2023-10-03 18:42 [PATCH BlueZ] shared/att: Don't keep retrying the same operation Luiz Augusto von Dentz
@ 2023-10-03 20:21 ` bluez.test.bot
2023-10-03 23:20 ` [PATCH BlueZ] " patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2023-10-03 20:21 UTC (permalink / raw)
To: linux-bluetooth, luiz.dentz
[-- Attachment #1: Type: text/plain, Size: 947 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=789685
---Test result---
Test Summary:
CheckPatch PASS 0.39 seconds
GitLint PASS 0.26 seconds
BuildEll PASS 33.91 seconds
BluezMake PASS 993.14 seconds
MakeCheck PASS 13.66 seconds
MakeDistcheck PASS 191.90 seconds
CheckValgrind PASS 308.54 seconds
CheckSmatch PASS 414.86 seconds
bluezmakeextell PASS 127.84 seconds
IncrementalBuild PASS 811.02 seconds
ScanBuild PASS 1271.64 seconds
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH BlueZ] shared/att: Don't keep retrying the same operation
2023-10-03 18:42 [PATCH BlueZ] shared/att: Don't keep retrying the same operation Luiz Augusto von Dentz
2023-10-03 20:21 ` [BlueZ] " bluez.test.bot
@ 2023-10-03 23:20 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2023-10-03 23:20 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Tue, 3 Oct 2023 11:42:22 -0700 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
>
> If an operation has been retried already don't attempt to change the
> security again.
> ---
> src/shared/att.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
Here is the summary with links:
- [BlueZ] shared/att: Don't keep retrying the same operation
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=7ff68ce57fb4
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-10-03 23:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-03 18:42 [PATCH BlueZ] shared/att: Don't keep retrying the same operation Luiz Augusto von Dentz
2023-10-03 20:21 ` [BlueZ] " bluez.test.bot
2023-10-03 23:20 ` [PATCH BlueZ] " patchwork-bot+bluetooth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).