add holder for mutex#8164
Conversation
dd221ae to
2abaf38
Compare
e90988f to
2c77e60
Compare
491a556 to
f25e732
Compare
Signed-off-by: lilei19 <lilei19@xiaomi.com>
f25e732 to
579795d
Compare
|
I noticed that sim:usrsocktest causes assert with this PR. |
| #define SEM_PRIO_INHERIT 1 | ||
| #define SEM_PRIO_PROTECT 2 | ||
| #define SEM_PRIO_MASK 3 | ||
| #define SEM_PRIO_MUTEX 4 |
There was a problem hiding this comment.
| #define SEM_PRIO_MUTEX 4 | |
| #define SEM_TYPE_MUTEX 4 |
It seems that this PR causes deadlock with ostest (e.g. rp2040:smp with CONFIG_DEBUG_ASSERTIONS=y). |
I just tried sim:usrsocktest with the last master(c19b5ee), all test can pass. |
Please try the test with |
|
@flyingfish89 |
|
Shall we revert this PR because there are some issues? |
|
+1 for revert |
Ok, I can repro the problem now. @masayuki2009 could you try this patch: #8164. The error is due to the code forget to convert the error number. |
Summary
add holder for mutex, continue the work #7426
Impact
remove holder from rmutex and add holder for mutex
Testing