Skip to content

Commit 0ecb582

Browse files
Davidlohr Buesotorvalds
authored andcommitted
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>
1 parent d6a2946 commit 0ecb582

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎ipc/mqueue.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,6 @@ static void wq_add(struct mqueue_inode_info *info, int sr,
611611
{
612612
struct ext_wait_queue *walk;
613613

614-
ewp->task = current;
615-
616614
list_for_each_entry(walk, &info->e_wait_q[sr].list, list) {
617615
if (walk->task->prio <= current->prio) {
618616
list_add_tail(&ewp->list, &walk->list);

0 commit comments

Comments
 (0)