lkml.org 
[lkml]   [2019]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH -next 1/2] ipc/mqueue: remove redundant wq task assignment
Date
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.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
---
ipc/mqueue.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/ipc/mqueue.c b/ipc/mqueue.c
index 127ba1e8950b..be3f599e90ed 100644
--- a/ipc/mqueue.c
+++ b/ipc/mqueue.c
@@ -617,8 +617,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);
--
2.16.4
\
 
 \ /
  Last update: 2019-03-21 20:27    [W:0.027 / U:0.972 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site