From: Davidlohr Bueso Date: Tue, 14 May 2019 22:46:23 +0000 (-0700) Subject: ipc/mqueue: remove redundant wq task assignment X-Git-Tag: v5.15~6360^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ecb58210bd9de14df62a614be07428ef10f9469;p=platform%2Fkernel%2Flinux-starfive.git 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 Cc: Manfred Spraul Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/ipc/mqueue.c b/ipc/mqueue.c index 6f93bda..8c6a041 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);