summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@stgolabs.net>2019-05-14 15:46:23 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2019-05-14 19:52:52 -0700
commit0ecb58210bd9de14df62a614be07428ef10f9469 (patch)
tree1c14872d716a67804a70b6a50e933ef7d935df6c /ipc
parentd6a2946a88f524a47cc9b79279667137899db807 (diff)
downloadlwn-0ecb58210bd9de14df62a614be07428ef10f9469.tar.gz
lwn-0ecb58210bd9de14df62a614be07428ef10f9469.zip
ipc/mqueue: remove redundant wq task assignment
We already store the current task fo the new waiter before calling wq_sleep() in both send and recv paths. Trivially remove the redundant assignment. Link: http://lkml.kernel.org/r/20190321190216.1719-1-dave@stgolabs.net Signed-off-by: Davidlohr Bueso <dbueso@suse.de> Cc: Manfred Spraul <manfred@colorfullife.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc')
-rw-r--r--ipc/mqueue.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c
index 6f93bda7e408..8c6a04111fde 100644
--- a/ipc/mqueue.c
+++ b/ipc/mqueue.c
@@ -611,8 +611,6 @@ static void wq_add(struct mqueue_inode_info *info, int sr,
{
struct ext_wait_queue *walk;
- ewp->task = current;
-
list_for_each_entry(walk, &info->e_wait_q[sr].list, list) {
if (walk->task->prio <= current->prio) {
list_add_tail(&ewp->list, &walk->list);