From: Will Deacon <will@kernel.org>
To: qiang.zhang@windriver.com
Cc: peterz@infradead.org, mingo@redhat.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] locking/percpu-rwsem: Remove WQ_FLAG_EXCLUSIVE flags
Date: Fri, 21 Aug 2020 12:13:44 +0100 [thread overview]
Message-ID: <20200821111343.GC20455@willie-the-truck> (raw)
In-Reply-To: <20200701055720.38092-1-qiang.zhang@windriver.com>
On Wed, Jul 01, 2020 at 01:57:20PM +0800, qiang.zhang@windriver.com wrote:
> From: Zqiang <qiang.zhang@windriver.com>
>
> Remove WQ_FLAG_EXCLUSIVE from "wq_entry.flags", using function
> __add_wait_queue_entry_tail_exclusive substitution.
>
> Signed-off-by: Zqiang <qiang.zhang@windriver.com>
> ---
> kernel/locking/percpu-rwsem.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/kernel/locking/percpu-rwsem.c b/kernel/locking/percpu-rwsem.c
> index 8bbafe3e5203..48e1c55c2e59 100644
> --- a/kernel/locking/percpu-rwsem.c
> +++ b/kernel/locking/percpu-rwsem.c
> @@ -148,8 +148,8 @@ static void percpu_rwsem_wait(struct percpu_rw_semaphore *sem, bool reader)
> */
> wait = !__percpu_rwsem_trylock(sem, reader);
> if (wait) {
> - wq_entry.flags |= WQ_FLAG_EXCLUSIVE | reader * WQ_FLAG_CUSTOM;
> - __add_wait_queue_entry_tail(&sem->waiters, &wq_entry);
> + wq_entry.flags |= reader * WQ_FLAG_CUSTOM;
> + __add_wait_queue_entry_tail_exclusive(&sem->waiters, &wq_entry);
> }
> spin_unlock_irq(&sem->waiters.lock);
Seems straightforward enough:
Acked-by: Will Deacon <will@kernel.org>
Will
next prev parent reply other threads:[~2020-08-21 11:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-01 5:57 qiang.zhang
2020-08-21 11:13 ` Will Deacon [this message]
2020-08-21 12:15 ` peterz
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=20200821111343.GC20455@willie-the-truck \
--to=will@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=qiang.zhang@windriver.com \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®