diff options
author | Xiaoming Ni <nixiaoming@huawei.com> | 2021-08-09 04:12:15 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-08-20 12:33:17 +0200 |
commit | 99409b935c9ac5ea36ab5218954115c52449234d (patch) | |
tree | 0f2769c63640eecc5f5fd236202b5eb2fdc2f38b /kernel/locking/rtmutex.c | |
parent | locking/ww_mutex: Initialize waiter.ww_ctx properly (diff) | |
download | linux-99409b935c9ac5ea36ab5218954115c52449234d.tar.xz linux-99409b935c9ac5ea36ab5218954115c52449234d.zip |
locking/semaphore: Add might_sleep() to down_*() family
Semaphore is sleeping lock. Add might_sleep() to down*() family
(with exception of down_trylock()) to detect atomic context sleep.
Signed-off-by: Xiaoming Ni <nixiaoming@huawei.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20210809021215.19991-1-nixiaoming@huawei.com
Diffstat (limited to 'kernel/locking/rtmutex.c')
0 files changed, 0 insertions, 0 deletions