mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] locking/percpu-rwsem: Remove WQ_FLAG_EXCLUSIVE flags
@ 2020-07-01  5:57 qiang.zhang
  2020-08-21 11:13 ` Will Deacon
  0 siblings, 1 reply; 3+ messages in thread
From: qiang.zhang @ 2020-07-01  5:57 UTC (permalink / raw)
  To: peterz, mingo, will; +Cc: linux-kernel

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);
 
-- 
2.24.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-21 12:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-01  5:57 [PATCH] locking/percpu-rwsem: Remove WQ_FLAG_EXCLUSIVE flags qiang.zhang
2020-08-21 11:13 ` Will Deacon
2020-08-21 12:15   ` peterz

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®