Skip to contentSkip to conversation

video: deferred io cleanup

PATCH In review Magnus Damm 2 participants 2 messages Dec 17, 2008 – Dec 24, 2008 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 video: deferred io cleanup

From: Magnus Damm <[email protected]>

Make sure the mmap callback is set to NULL in the deferred io cleanup function. This way we can enable and disable deferred io on the fly.

---

 drivers/video/fb_defio.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/video/fb_defio.c +3 -0
@@ -202,6 +202,9 @@ void fb_deferred_io_cleanup(struct fb_in
 		page = vmalloc_to_page(screen_base + i);
 		page->mapping = NULL;
 	}
+
+	info->fbops->fb_mmap = NULL;
+	mutex_destroy(&fbdefio->lock);
 }
 EXPORT_SYMBOL_GPL(fb_deferred_io_cleanup);
 

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/