]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sched/preempt, sh: kmap_coherent relies on disabled preemption
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Mon, 29 Feb 2016 08:19:24 +0000 (09:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 16:08:36 +0000 (09:08 -0700)
commit10595c57f4682b096d6ac6dd2212ac889f08d9f4
tree3c499f9ea97b9ff63b7e76351e67fdd2f1a8dda0
parentaf080e5802224176001a987c3ab77ba7490ef49e
sched/preempt, sh: kmap_coherent relies on disabled preemption

commit b15d53d009558d14c4f394a6d1fa2039c7f45c43 upstream.

kmap_coherent needs disabled preemption to not schedule in the critical
section, just like kmap_coherent on mips and kmap_atomic in general.

Fixes: 8222dbe21e79 "sched/preempt, mm/fault: Decouple preemption from the page fault logic"
Reported-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Tested-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Rich Felker <dalias@libc.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sh/mm/kmap.c