From: Tejun Heo <tj@kernel.org>
To: Jaya Kumar <jayalk@intworks.biz>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] video: don't use flush_scheduled_work() in fb_defio
Date: Wed, 15 Jun 2011 16:57:21 +0200 [thread overview]
Message-ID: <20110615145721.GA8141@htj.dyndns.org> (raw)
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) {
next reply other threads:[~2011-06-15 14:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-15 14:57 Tejun Heo [this message]
2011-06-16 6:56 ` [PATCH] video: don't use flush_scheduled_work() in fb_defio Paul Mundt
2011-06-16 8:09 ` Tejun Heo
-- strict thread matches above, loose matches on Subject: below --
2011-06-15 16:00 Tejun Heo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110615145721.GA8141@htj.dyndns.org \
--to=tj@kernel.org \
--cc=jayalk@intworks.biz \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).