LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Will Deacon <will@kernel.org>
To: Xiaoming Ni <nixiaoming@huawei.com>
Cc: linux-kernel@vger.kernel.org, peterz@infradead.org,
mingo@redhat.com, longman@redhat.com, boqun.feng@gmail.com,
wangle6@huawei.com, xiaoqian9@huawei.com, shaolexi@huawei.com
Subject: Re: [PATCH] semaphore: Add might_sleep() to down_*() family
Date: Fri, 13 Aug 2021 15:43:06 +0100 [thread overview]
Message-ID: <20210813144305.GB8451@willie-the-truck> (raw)
In-Reply-To: <20210809021215.19991-1-nixiaoming@huawei.com>
On Mon, Aug 09, 2021 at 10:12:15AM +0800, Xiaoming Ni wrote:
> Semaphore is sleeping lock. Add might_sleep() to down*() family
> (with exception of down_trylock()) to detect atomic context sleep.
>
> Previously discussed with Peter Zijlstra, see link:
> https://lore.kernel.org/lkml/20210806082320.GD22037@worktop.programming.kicks-ass.net
You can use a Link: tag here.
> Signed-off-by: Xiaoming Ni <nixiaoming@huawei.com>
> ---
> kernel/locking/semaphore.c | 4 ++++
> 1 file changed, 4 insertions(+)
Acked-by: Will Deacon <will@kernel.org>
Will
next prev parent reply other threads:[~2021-08-13 14:43 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-09 2:12 Xiaoming Ni
2021-08-09 3:01 ` Waiman Long
2021-08-09 3:51 ` Xiaoming Ni
2021-08-09 12:52 ` Waiman Long
2021-08-09 14:33 ` Xiaoming Ni
2021-08-13 17:27 ` Thomas Gleixner
2021-08-13 18:47 ` Waiman Long
2021-08-13 14:43 ` Will Deacon [this message]
2021-08-23 9:39 ` [tip: locking/core] locking/semaphore: " tip-bot2 for Xiaoming Ni
2021-08-31 11:13 ` [PATCH] semaphore: " Guenter Roeck
2021-08-31 11:39 ` Hanjun Guo
2021-08-31 12:20 ` Thomas Gleixner
2021-08-31 11:40 ` Peter Zijlstra
2021-08-31 12:13 ` Thomas Gleixner
2021-08-31 12:34 ` Will Deacon
2021-08-31 17:42 ` Guenter Roeck
2021-09-01 8:37 ` [tip: smp/urgent] drivers: base: cacheinfo: Get rid of DEFINE_SMP_CALL_CACHE_FUNCTION() tip-bot2 for Thomas Gleixner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210813144305.GB8451@willie-the-truck \
--to=will@kernel.org \
--cc=boqun.feng@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=longman@redhat.com \
--cc=mingo@redhat.com \
--cc=nixiaoming@huawei.com \
--cc=peterz@infradead.org \
--cc=shaolexi@huawei.com \
--cc=wangle6@huawei.com \
--cc=xiaoqian9@huawei.com \
--subject='Re: [PATCH] semaphore: Add might_sleep() to down_*() family' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).