* [PATCH] video: don't use flush_scheduled_work() in fb_defio
@ 2011-06-15 16:00 Tejun Heo
0 siblings, 0 replies; 4+ messages in thread
From: Tejun Heo @ 2011-06-15 16:00 UTC (permalink / raw)
To: Jaya Kumar; +Cc: linux-kernel
flush_scheduled_work() in on the way out. fb_deferred_io_cleanup()
can simply sync-cancel info->deferred_work instead of cancel +
flush_scheduled_work(). Drop flush_scheduled_work() usage.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Jaya Kumar <jayakumar.lkml@gmail.com>
---
Compile tested. I'm planning on marking flush_scheduled_work()
deprecated in linux-next so it would be great if this can show up
there soonish. Thank you.
Resending because @intworks.biz bounced. Please update MAINTAINERS
with new email address.
drivers/video/fb_defio.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Index: work/drivers/video/fb_defio.c
===================================================================
--- work.orig/drivers/video/fb_defio.c
+++ work/drivers/video/fb_defio.c
@@ -216,8 +216,7 @@ void fb_deferred_io_cleanup(struct fb_in
int i;
BUG_ON(!fbdefio);
- cancel_delayed_work(&info->deferred_work);
- flush_scheduled_work();
+ cancel_delayed_work_sync(&info->deferred_work);
/* clear out the mapping that we setup */
for (i = 0 ; i < info->fix.smem_len; i += PAGE_SIZE) {
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] video: don't use flush_scheduled_work() in fb_defio
2011-06-16 6:56 ` Paul Mundt
@ 2011-06-16 8:09 ` Tejun Heo
0 siblings, 0 replies; 4+ messages in thread
From: Tejun Heo @ 2011-06-16 8:09 UTC (permalink / raw)
To: Paul Mundt; +Cc: Jaya Kumar, Andrew Morton, linux-kernel
On Thu, Jun 16, 2011 at 03:56:18PM +0900, Paul Mundt wrote:
> > drivers/video/fb_defio.c | 3 +--
> > 1 file changed, 1 insertion(+), 2 deletions(-)
> >
> I've applied it to my fbdev tree, so it should show up in -next as of
> tomorrow.
>
> In the future, please also Cc linux-fbdev@vger.kernel.org on these
> things, as they're likely to be overlooked otherwise.
Will do so.
Thanks.
--
tejun
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] video: don't use flush_scheduled_work() in fb_defio
2011-06-15 14:57 Tejun Heo
@ 2011-06-16 6:56 ` Paul Mundt
2011-06-16 8:09 ` Tejun Heo
0 siblings, 1 reply; 4+ messages in thread
From: Paul Mundt @ 2011-06-16 6:56 UTC (permalink / raw)
To: Tejun Heo; +Cc: Jaya Kumar, Andrew Morton, linux-kernel
On Wed, Jun 15, 2011 at 04:57:21PM +0200, Tejun Heo wrote:
> flush_scheduled_work() in on the way out. fb_deferred_io_cleanup()
> can simply sync-cancel info->deferred_work instead of cancel +
> flush_scheduled_work(). Drop flush_scheduled_work() usage.
>
> Signed-off-by: Tejun Heo <tj@kernel.org>
> Cc: Jaya Kumar <jayalk@intworks.biz>
> ---
> Compile tested. I'm planning on marking flush_scheduled_work()
> deprecated in linux-next so it would be great if this can show up
> there soonish. Thank you.
>
> drivers/video/fb_defio.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
I've applied it to my fbdev tree, so it should show up in -next as of
tomorrow.
In the future, please also Cc linux-fbdev@vger.kernel.org on these
things, as they're likely to be overlooked otherwise.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] video: don't use flush_scheduled_work() in fb_defio
@ 2011-06-15 14:57 Tejun Heo
2011-06-16 6:56 ` Paul Mundt
0 siblings, 1 reply; 4+ messages in thread
From: Tejun Heo @ 2011-06-15 14:57 UTC (permalink / raw)
To: Jaya Kumar; +Cc: linux-kernel
flush_scheduled_work() in on the way out. fb_deferred_io_cleanup()
can simply sync-cancel info->deferred_work instead of cancel +
flush_scheduled_work(). Drop flush_scheduled_work() usage.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Jaya Kumar <jayalk@intworks.biz>
---
Compile tested. I'm planning on marking flush_scheduled_work()
deprecated in linux-next so it would be great if this can show up
there soonish. Thank you.
drivers/video/fb_defio.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Index: work/drivers/video/fb_defio.c
===================================================================
--- work.orig/drivers/video/fb_defio.c
+++ work/drivers/video/fb_defio.c
@@ -216,8 +216,7 @@ void fb_deferred_io_cleanup(struct fb_in
int i;
BUG_ON(!fbdefio);
- cancel_delayed_work(&info->deferred_work);
- flush_scheduled_work();
+ cancel_delayed_work_sync(&info->deferred_work);
/* clear out the mapping that we setup */
for (i = 0 ; i < info->fix.smem_len; i += PAGE_SIZE) {
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-06-16 8:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-15 16:00 [PATCH] video: don't use flush_scheduled_work() in fb_defio Tejun Heo
-- strict thread matches above, loose matches on Subject: below --
2011-06-15 14:57 Tejun Heo
2011-06-16 6:56 ` Paul Mundt
2011-06-16 8:09 ` Tejun Heo
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).