MIPS: Use rcu to lookup a task in mipsmt_sys_sched_setaffinity()
authorDavidlohr Bueso <dave@stgolabs.net>
Mon, 31 Aug 2020 20:14:02 +0000 (13:14 -0700)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 3 Sep 2020 08:13:43 +0000 (10:13 +0200)
commitf0100c7f1aac7f10eb249c494de5016fcf8c0652
treea80d04b4a34826dd7883bb6aba1763218a9df117
parenta510b616131f85215ba156ed67e5ed1c0701f80f
MIPS: Use rcu to lookup a task in mipsmt_sys_sched_setaffinity()

The call simply looks up the corresponding task (without iterating
the tasklist), which is safe under rcu instead of the tasklist_lock.
In addition, the setaffinity counter part already does this.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/mips-mt-fpaff.c