Skip to contentSkip to conversation

bounce: call flush_dcache_page after bounce_copy_vec

PATCH Gary King 1 participant 1 message Sep 6, 2010 Memory management

lore
Share & tools
lore

Gary King

author
#0 lore raw

the bounced page needs to be flushed after data is copied into it, to ensure that architecture implementations can synchronize instruction and data caches if necessary.

---
 mm/bounce.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
mm/bounce.c +1 -1
index 13b6dad..1481de6 100644
@@ -116,8 +116,8 @@ static void copy_to_high_bio_irq(struct bio *to, struct bio *from)
 		 */
 		vfrom = page_address(fromvec->bv_page) + tovec->bv_offset;
 
-		flush_dcache_page(tovec->bv_page);
 		bounce_copy_vec(tovec, vfrom);
+		flush_dcache_page(tovec->bv_page);
 	}
 }
 
Signature · 1 line
1.7.0.4