ipc/mqueue: remove redundant wq task assignment
authorDavidlohr Bueso <dave@stgolabs.net>
Tue, 14 May 2019 22:46:23 +0000 (15:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 15 May 2019 02:52:52 +0000 (19:52 -0700)
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>
ipc/mqueue.c

index 6f93bda7e4088c535c2cc0592c2a134320fcdbd9..8c6a04111fded6932717336fc9062cc161199009 100644 (file)
@@ -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);