RFC locking: Add/convert context analysis bits
Status from this message: The following commit has been merged into the locking/core branch of tip:
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest4 patches 21 repliesApplied
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | compiler-context-analysys: Add __cond_releases()include/ | +32 | 5 replies | |
| 2/4 | locking/mutex: Add context analysisinclude/ kernel/ kernel/ +2 more | +53 | 2 replies | |
| 3/4 | locking/rtmutex: Add context analysisinclude/ include/ kernel/ +6 more | +55 | 2 replies | |
| 4/4 | futex: Convert to compiler context analysiskernel/ kernel/ kernel/ +2 more | +35 | 1 reply |
Reviews trailers per patch
1 of 4 patches has a Reviewed-by or Acked-by.
| Patch | Marco Elver |
|---|---|
| 1/4 | R-b |
| 2/4 | |
| 3/4 | |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC][PATCH 0/4] locking: Add/convert context analysis bits
Hai
This is on top of tip/locking/core with these patches on:
https://lkml.kernel.org/r/[email protected]
and converts mutex, rtmutex, ww_mutex and futex to use the new context analysis bits.
There is one snafu:
ww_mutex_set_context_fastpath()'s data_race() usage doesn't stop the compiler from complaining when building a defconfig+PREEMPT_RT+LOCKDEP build:
../kernel/locking/ww_mutex.h:439:24: error: calling function '__ww_mutex_has_waiters' requires holding raw_spinlock 'lock->base.rtmutex.wait_lock' exclusively [-Werror,-Wthread-safety-analysis]
439 | if (likely(!data_race(__ww_mutex_has_waiters(&lock->base))))
| ^
1 error generated.