* [PATCH] video: deferred io cleanup
@ 2008-12-17 8:37 Magnus Damm
2008-12-24 5:04 ` Jaya Kumar
0 siblings, 1 reply; 2+ messages in thread
From: Magnus Damm @ 2008-12-17 8:37 UTC (permalink / raw)
To: linux-fbdev-devel; +Cc: Magnus Damm
From: Magnus Damm <damm@igel.co.jp>
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.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
---
drivers/video/fb_defio.c | 3 +++
1 file changed, 3 insertions(+)
--- 0004/drivers/video/fb_defio.c
+++ work/drivers/video/fb_defio.c 2008-12-17 15:32:04.000000000 +0900
@@ -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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] video: deferred io cleanup
2008-12-17 8:37 [PATCH] video: deferred io cleanup Magnus Damm
@ 2008-12-24 5:04 ` Jaya Kumar
0 siblings, 0 replies; 2+ messages in thread
From: Jaya Kumar @ 2008-12-24 5:04 UTC (permalink / raw)
To: Magnus Damm; +Cc: linux-fbdev-devel
On Wed, Dec 17, 2008 at 3:37 AM, Magnus Damm <magnus.damm@gmail.com> wrote:
> From: Magnus Damm <damm@igel.co.jp>
>
> 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.
>
> Signed-off-by: Magnus Damm <damm@igel.co.jp>
Acked-by: Jaya Kumar <jayakumar.lkml@gmail.com>
------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-24 5:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-17 8:37 [PATCH] video: deferred io cleanup Magnus Damm
2008-12-24 5:04 ` Jaya Kumar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).