video: don't use flush_scheduled_work() in fb_defio
PATCH 1/1 video: don't use flush_scheduled_work() in fb_defio
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.
---
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(-)
drivers/video/fb_defio.c +1 -2
@@ -216,8 +216,7 @@ void fb_deferred_io_cleanup(struct fb_inint 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 ) {
Quoted 6 lines · Tejun Heo
flush_scheduled_work()in on the way out.fb_deferred_io_cleanup()can simply sync-cancelinfo->deferred_workinstead of cancel +flush_scheduled_work(). Dropflush_scheduled_work()usage.Signed-off-by Tejun Heo <[email protected]>Cc Jaya Kumar <[email protected]>
Quoted 8 lines
---
Compile tested. I'm planning on markingflush_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 [email protected] on these things, as they're likely to be overlooked otherwise.
Quoted 8 lines · Paul Mundt
Quoted 3 lines
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 [email protected] on these things, as they're likely to be overlooked otherwise.
Will do so.
Thanks.
Signature · 1 line
tejun