34 lines
912 B
Diff
34 lines
912 B
Diff
From 7b3ca330c86b6abbae21e62215a877c966821452 Mon Sep 17 00:00:00 2001
|
|
From: Thomas Gleixner <tglx@linutronix.de>
|
|
Date: Wed, 9 Jan 2013 10:33:09 +0100
|
|
Subject: [PATCH 105/365] mm: bounce: Use local_irq_save_nort
|
|
|
|
kmap_atomic() is preemptible on RT.
|
|
|
|
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
|
|
---
|
|
block/bounce.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/block/bounce.c b/block/bounce.c
|
|
index 1cb5dd3a5da1..2f1ec8a67cbe 100644
|
|
--- a/block/bounce.c
|
|
+++ b/block/bounce.c
|
|
@@ -55,11 +55,11 @@ static void bounce_copy_vec(struct bio_vec *to, unsigned char *vfrom)
|
|
unsigned long flags;
|
|
unsigned char *vto;
|
|
|
|
- local_irq_save(flags);
|
|
+ local_irq_save_nort(flags);
|
|
vto = kmap_atomic(to->bv_page);
|
|
memcpy(vto + to->bv_offset, vfrom, to->bv_len);
|
|
kunmap_atomic(vto);
|
|
- local_irq_restore(flags);
|
|
+ local_irq_restore_nort(flags);
|
|
}
|
|
|
|
#else /* CONFIG_HIGHMEM */
|
|
--
|
|
2.28.0
|
|
|