Skip to content

Commit

Permalink
ipc/mqueue: remove redundant wq task assignment
Browse files Browse the repository at this point in the history
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/[email protected]
Signed-off-by: Davidlohr Bueso <[email protected]>
Cc: Manfred Spraul <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Davidlohr Bueso authored and torvalds committed May 15, 2019
1 parent d6a2946 commit 0ecb582
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ipc/mqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0ecb582

Please sign in to comment.