Skip to content

Conversation

@anjiahao1
Copy link
Contributor

@anjiahao1 anjiahao1 commented May 16, 2022

Signed-off-by: anjiahao anjiahao@xiaomi.com

Summary

add recurive lock

plan

  1. Replace all duplicate recursive locks with the current recursive lock implementation,eg(net_lock or inode_lock .. maybe more then)
  2. Use mutex to replace all places in nuttx that use sem as a lock
    3.Then change the default behavior of sem,it associated with
    RP5070

@anjiahao1 anjiahao1 force-pushed the rmutex branch 2 times, most recently from 0c0c3ad to 282d9b7 Compare May 16, 2022 11:05
@xiaoxiang781216
Copy link
Contributor

@anjiahao1 please rebase to the last mainline. CI error is fixed here: #6281

@anjiahao1 anjiahao1 force-pushed the rmutex branch 2 times, most recently from de0d19f to 2f68075 Compare May 18, 2022 12:52
Copy link
Contributor

@davids5 davids5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are operation in DEBUGASSERTS!

Copy link
Contributor

@davids5 davids5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See inline

@xiaoxiang781216
Copy link
Contributor

@davids5 and @pkarashchenko could you take a look again?

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
Copy link
Contributor

@pkarashchenko pkarashchenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@xiaoxiang781216 xiaoxiang781216 merged commit 247a13c into apache:master May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace all place which use semaphore as lock with mutex wrapper

6 participants