From: Thomas Hellstrom <thellstrom@vmware.com>
To: Tejun Heo <tj@kernel.org>
Cc: Dave Airlie <airlied@redhat.com>,
Jerome Glisse <jglisse@redhat.com>,
lkml <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2.6.36-rc7] drm/ttm: use cancel_delayed_work_sync() in ttm_bo
Date: Fri, 15 Oct 2010 16:44:02 +0200 [thread overview]
Message-ID: <4CB868B2.60407@vmware.com> (raw)
In-Reply-To: <4CB84532.5020809@kernel.org>
On 10/15/2010 02:12 PM, Tejun Heo wrote:
> Make ttm_bo::ttm_bo_device_release call cancel_delayed_work_sync()
> instead of calling cancel_delayed_work() followed by
> flush_scheduled_work().
>
> This is to prepare for the deprecation and removal of
> flush_scheduled_work().
>
> Signed-off-by: Tejun Heo<tj@kernel.org>
>
Acked-by: Thomas Hellstrom <thellstrom@vmware.com>
Thanks,
Thomas
> ---
> drivers/gpu/drm/ttm/ttm_bo.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> Index: work/drivers/gpu/drm/ttm/ttm_bo.c
> ===================================================================
> --- work.orig/drivers/gpu/drm/ttm/ttm_bo.c
> +++ work/drivers/gpu/drm/ttm/ttm_bo.c
> @@ -1480,8 +1480,7 @@ int ttm_bo_device_release(struct ttm_bo_
> list_del(&bdev->device_list);
> mutex_unlock(&glob->device_list_mutex);
>
> - if (!cancel_delayed_work(&bdev->wq))
> - flush_scheduled_work();
> + cancel_delayed_work_sync(&bdev->wq);
>
> while (ttm_bo_delayed_delete(bdev, true))
> ;
>
prev parent reply other threads:[~2010-10-15 14:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-15 12:12 Tejun Heo
2010-10-15 14:44 ` Thomas Hellstrom [this message]
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=4CB868B2.60407@vmware.com \
--to=thellstrom@vmware.com \
--cc=airlied@redhat.com \
--cc=jglisse@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tj@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
Powered by JetHome