-
Notifications
You must be signed in to change notification settings - Fork 463
nimble/host: Rework locking in L2CAP #2144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sjanc
wants to merge
1
commit into
apache:master
Choose a base branch
from
sjanc:l2cap_coc_lock
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+274
−224
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e318c2d to
99caccb
Compare
Contributor
Author
|
#AutoPTS run mynewt L2CAP |
|
Scheduled PR #2144 (comment), board: nrf52, estimated start time: 08:43:35, test case count: 99, estimated duration: 0:45:10 Test cases to be runL2CAP/COS/CED/BI-05-CL2CAP/COS/CED/BI-09-C L2CAP/COS/CED/BI-11-C L2CAP/COS/CED/BI-13-C L2CAP/COS/CED/BI-16-C L2CAP/COS/CED/BI-17-C L2CAP/COS/CED/BI-29-C L2CAP/COS/CFC/BV-01-C L2CAP/COS/CFC/BV-02-C L2CAP/COS/CFC/BV-03-C L2CAP/COS/CFC/BV-04-C L2CAP/COS/CFC/BV-05-C L2CAP/COS/ECFC/BV-01-C L2CAP/COS/ECFC/BV-02-C L2CAP/COS/ECFC/BV-03-C L2CAP/COS/ECFC/BV-04-C L2CAP/LE/CPU/BV-01-C L2CAP/LE/CPU/BV-02-C L2CAP/LE/CPU/BI-01-C L2CAP/LE/CPU/BI-02-C L2CAP/LE/REJ/BI-02-C L2CAP/LE/CFC/BV-01-C L2CAP/LE/CFC/BV-02-C L2CAP/LE/CFC/BV-03-C L2CAP/LE/CFC/BV-04-C L2CAP/LE/CFC/BV-05-C L2CAP/LE/CFC/BV-06-C L2CAP/LE/CFC/BV-07-C L2CAP/LE/CFC/BI-01-C L2CAP/LE/CFC/BV-08-C L2CAP/LE/CFC/BV-09-C L2CAP/LE/CFC/BV-10-C L2CAP/LE/CFC/BV-11-C L2CAP/LE/CFC/BV-12-C L2CAP/LE/CFC/BV-13-C L2CAP/LE/CFC/BV-14-C L2CAP/LE/CFC/BV-15-C L2CAP/LE/CFC/BV-16-C L2CAP/LE/CFC/BV-18-C L2CAP/LE/CFC/BV-19-C L2CAP/LE/CFC/BV-20-C L2CAP/LE/CFC/BV-21-C L2CAP/LE/CFC/BV-22-C L2CAP/LE/CFC/BV-23-C L2CAP/LE/CFC/BV-24-C L2CAP/LE/CFC/BV-25-C L2CAP/LE/CFC/BV-26-C L2CAP/LE/CFC/BV-27-C L2CAP/LE/CFC/BV-28-C L2CAP/LE/CFC/BV-29-C L2CAP/LE/CFC/BV-30-C L2CAP/LE/CFC/BV-31-C L2CAP/LE/CFC/BV-32-C L2CAP/ECFC/BV-01-C L2CAP/ECFC/BV-02-C L2CAP/ECFC/BV-03-C L2CAP/ECFC/BV-04-C L2CAP/ECFC/BV-06-C L2CAP/ECFC/BV-07-C L2CAP/ECFC/BI-01-C L2CAP/ECFC/BI-02-C L2CAP/ECFC/BV-08-C L2CAP/ECFC/BV-09-C L2CAP/ECFC/BV-10-C L2CAP/ECFC/BV-11-C L2CAP/ECFC/BV-12-C L2CAP/ECFC/BV-13-C L2CAP/ECFC/BV-14-C L2CAP/ECFC/BV-15-C L2CAP/ECFC/BV-16-C L2CAP/ECFC/BV-17-C L2CAP/ECFC/BV-18-C L2CAP/ECFC/BV-19-C L2CAP/ECFC/BV-20-C L2CAP/ECFC/BV-21-C L2CAP/ECFC/BV-22-C L2CAP/ECFC/BV-23-C L2CAP/ECFC/BI-03-C L2CAP/ECFC/BV-24-C L2CAP/ECFC/BV-25-C L2CAP/ECFC/BI-04-C L2CAP/ECFC/BV-26-C L2CAP/ECFC/BV-27-C L2CAP/ECFC/BV-28-C L2CAP/ECFC/BV-29-C L2CAP/ECFC/BV-30-C L2CAP/ECFC/BV-31-C L2CAP/ECFC/BV-32-C L2CAP/ECFC/BV-33-C L2CAP/ECFC/BV-34-C L2CAP/ECFC/BV-35-C L2CAP/ECFC/BV-38-C L2CAP/ECFC/BV-39-C L2CAP/ECFC/BV-41-C L2CAP/ECFC/BI-05-C L2CAP/ECFC/BI-06-C L2CAP/ECFC/BI-07-C L2CAP/ECFC/BV-80-C L2CAP/TIM/BV-03-C |
|
AutoPTS Bot results: Failed tests (6)L2CAP L2CAP/COS/CED/BI-29-C INDCSVL2CAP L2CAP/ECFC/BV-20-C INDCSV L2CAP L2CAP/ECFC/BV-22-C INDCSV L2CAP L2CAP/ECFC/BV-33-C FAIL L2CAP L2CAP/LE/CFC/BV-26-C FAIL L2CAP L2CAP/TIM/BV-03-C INDCSV Successful tests (94)L2CAP L2CAP/COS/CED/BI-05-C PASSL2CAP L2CAP/COS/CED/BI-09-C PASS L2CAP L2CAP/COS/CED/BI-11-C PASS L2CAP L2CAP/COS/CED/BI-13-C PASS L2CAP L2CAP/COS/CED/BI-16-C PASS L2CAP L2CAP/COS/CED/BI-17-C PASS L2CAP L2CAP/COS/CFC/BV-01-C PASS L2CAP L2CAP/COS/CFC/BV-02-C PASS L2CAP L2CAP/COS/CFC/BV-03-C PASS L2CAP L2CAP/COS/CFC/BV-04-C PASS L2CAP L2CAP/COS/CFC/BV-05-C PASS L2CAP L2CAP/COS/ECFC/BV-01-C PASS - ERRATA Request ID 145333 L2CAP L2CAP/COS/ECFC/BV-02-C PASS L2CAP L2CAP/COS/ECFC/BV-03-C PASS L2CAP L2CAP/COS/ECFC/BV-04-C PASS L2CAP L2CAP/ECFC/BI-01-C PASS L2CAP L2CAP/ECFC/BI-02-C PASS - ERRATA Request ID 103343 L2CAP L2CAP/ECFC/BI-03-C PASS L2CAP L2CAP/ECFC/BI-04-C PASS - ERRATA Request ID 173638 L2CAP L2CAP/ECFC/BI-05-C PASS L2CAP L2CAP/ECFC/BI-06-C PASS L2CAP L2CAP/ECFC/BI-07-C PASS L2CAP L2CAP/ECFC/BV-01-C PASS L2CAP L2CAP/ECFC/BV-02-C PASS L2CAP L2CAP/ECFC/BV-03-C PASS L2CAP L2CAP/ECFC/BV-04-C PASS L2CAP L2CAP/ECFC/BV-06-C PASS L2CAP L2CAP/ECFC/BV-07-C PASS L2CAP L2CAP/ECFC/BV-08-C PASS L2CAP L2CAP/ECFC/BV-09-C PASS L2CAP L2CAP/ECFC/BV-10-C PASS L2CAP L2CAP/ECFC/BV-11-C PASS L2CAP L2CAP/ECFC/BV-12-C PASS L2CAP L2CAP/ECFC/BV-13-C PASS L2CAP L2CAP/ECFC/BV-14-C PASS L2CAP L2CAP/ECFC/BV-15-C PASS L2CAP L2CAP/ECFC/BV-16-C PASS L2CAP L2CAP/ECFC/BV-17-C PASS L2CAP L2CAP/ECFC/BV-18-C PASS L2CAP L2CAP/ECFC/BV-19-C PASS L2CAP L2CAP/ECFC/BV-21-C PASS L2CAP L2CAP/ECFC/BV-23-C PASS L2CAP L2CAP/ECFC/BV-24-C PASS L2CAP L2CAP/ECFC/BV-25-C PASS L2CAP L2CAP/ECFC/BV-26-C PASS L2CAP L2CAP/ECFC/BV-27-C PASS L2CAP L2CAP/ECFC/BV-28-C PASS L2CAP L2CAP/ECFC/BV-29-C PASS L2CAP L2CAP/ECFC/BV-30-C PASS L2CAP L2CAP/ECFC/BV-31-C PASS L2CAP L2CAP/ECFC/BV-32-C PASS L2CAP L2CAP/ECFC/BV-34-C PASS L2CAP L2CAP/ECFC/BV-35-C PASS L2CAP L2CAP/ECFC/BV-38-C PASS L2CAP L2CAP/ECFC/BV-39-C PASS L2CAP L2CAP/ECFC/BV-41-C PASS L2CAP L2CAP/ECFC/BV-80-C PASS L2CAP L2CAP/LE/CFC/BI-01-C PASS L2CAP L2CAP/LE/CFC/BV-01-C PASS L2CAP L2CAP/LE/CFC/BV-02-C PASS L2CAP L2CAP/LE/CFC/BV-03-C PASS L2CAP L2CAP/LE/CFC/BV-04-C PASS L2CAP L2CAP/LE/CFC/BV-05-C PASS L2CAP L2CAP/LE/CFC/BV-06-C PASS L2CAP L2CAP/LE/CFC/BV-07-C PASS L2CAP L2CAP/LE/CFC/BV-08-C PASS L2CAP L2CAP/LE/CFC/BV-09-C PASS L2CAP L2CAP/LE/CFC/BV-10-C PASS L2CAP L2CAP/LE/CFC/BV-11-C PASS L2CAP L2CAP/LE/CFC/BV-12-C PASS L2CAP L2CAP/LE/CFC/BV-13-C PASS L2CAP L2CAP/LE/CFC/BV-14-C PASS L2CAP L2CAP/LE/CFC/BV-15-C PASS L2CAP L2CAP/LE/CFC/BV-16-C PASS L2CAP L2CAP/LE/CFC/BV-18-C PASS L2CAP L2CAP/LE/CFC/BV-19-C PASS L2CAP L2CAP/LE/CFC/BV-20-C PASS L2CAP L2CAP/LE/CFC/BV-21-C PASS L2CAP L2CAP/LE/CFC/BV-22-C PASS L2CAP L2CAP/LE/CFC/BV-23-C PASS L2CAP L2CAP/LE/CFC/BV-24-C PASS L2CAP L2CAP/LE/CFC/BV-25-C PASS L2CAP L2CAP/LE/CFC/BV-27-C PASS L2CAP L2CAP/LE/CFC/BV-28-C PASS L2CAP L2CAP/LE/CFC/BV-29-C PASS L2CAP L2CAP/LE/CFC/BV-30-C PASS L2CAP L2CAP/LE/CFC/BV-31-C PASS L2CAP L2CAP/LE/CFC/BV-32-C PASS L2CAP L2CAP/LE/CID/BI-01-C PASS L2CAP L2CAP/LE/CPU/BI-01-C PASS L2CAP L2CAP/LE/CPU/BI-02-C PASS L2CAP L2CAP/LE/CPU/BV-01-C PASS L2CAP L2CAP/LE/CPU/BV-02-C PASS L2CAP L2CAP/LE/REJ/BI-02-C PASS |
Main goal here to cleanup how locking is being done in L2CAP code: - avoid double/nested locking - avoid lock-unlock-lock pattern due to public API calls from internal code - provide _nolock variants to be used internally - public API is locked wrapper around _nolock private API - avoid locking in FOO and unlocking in BAR function for code clarify
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Main goal here to cleanup how locking is being done in L2CAP code: