summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-07-03 08:44:34 -0500
committerSebastian Andrzej Siewior <bigeasy@linutronix.de>2018-08-07 16:20:14 +0200
commit41d34df0b4c81a996e72dc20b9b842d1cc6fd65e (patch)
treec2fcf8512ad325d678a6b869ca06cb81bc45b039 /lib
parent6a751a4c389d8eb32c57c21a50710550e1730484 (diff)
downloadlinux-rt-41d34df0b4c81a996e72dc20b9b842d1cc6fd65e.tar.gz
mm/scatterlist: Do not disable irqs on RT
For -RT it is enough to keep pagefault disabled (which is currently handled by kmap_atomic()). Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/scatterlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/scatterlist.c b/lib/scatterlist.c
index 7c6096a71704..5c2c68962709 100644
--- a/lib/scatterlist.c
+++ b/lib/scatterlist.c
@@ -776,7 +776,7 @@ void sg_miter_stop(struct sg_mapping_iter *miter)
flush_kernel_dcache_page(miter->page);
if (miter->__flags & SG_MITER_ATOMIC) {
- WARN_ON_ONCE(preemptible());
+ WARN_ON_ONCE(!pagefault_disabled());
kunmap_atomic(miter->addr);
} else
kunmap(miter->page);