[PATCH] lib/klist: Remove mb() before wake_up_process

From: wuchi
Date: Tue Jun 14 2022 - 10:44:55 EST


Function wake_up_process always executes a general memory barrier,
so remove the mb() before it.

Signed-off-by: wuchi <wuchi.zero@xxxxxxxxx>
---
lib/klist.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/lib/klist.c b/lib/klist.c
index 332a4fbf18ff..c44498e31d91 100644
--- a/lib/klist.c
+++ b/lib/klist.c
@@ -194,7 +194,6 @@ static void klist_release(struct kref *kref)

list_del(&waiter->list);
waiter->woken = 1;
- mb();
wake_up_process(waiter->process);
}
spin_unlock(&klist_remove_lock);
--
2.20.1