From: Markus Armbruster <armbru@redhat.com>
To: "Jaya Kumar" <jayakumar.lkml@gmail.com>
Cc: "Andrew Morton" <akpm@linux-foundation.org>,
"Ian Campbell" <ijc@hellion.org.uk>,
"Linus Torvalds" <torvalds@linux-foundation.org>,
"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
stable@vger.kernel.org, "Nick Piggin" <npiggin@suse.de>,
"Peter Zijlstra" <a.p.zijlstra@chello.nl>,
"Hugh Dickins" <hugh@veritas.com>,
"Johannes Weiner" <hannes@saeurebad.de>,
"Jeremy Fitzhardinge" <jeremy@goop.org>,
"Kel Modderman" <kel@otaku42.de>
Subject: Re: [PATCH] fbdefio: add set_page_dirty handler to deferred IO FB
Date: Wed, 20 Aug 2008 08:27:33 -0400 [thread overview]
Message-ID: <m3bpznan2i.fsf@crossbow.pond.sub.org> (raw)
In-Reply-To: <45a44e480808200146m1167b8e6o74d68324ad138dc5@mail.gmail.com> (Jaya Kumar's message of "Wed\, 20 Aug 2008 04\:46\:08 -0400")
"Jaya Kumar" <jayakumar.lkml@gmail.com> writes:
> On Tue, Aug 19, 2008 at 2:38 AM, Andrew Morton
> <akpm@linux-foundation.org> wrote:
>> On Tue, 19 Aug 2008 07:02:45 +0100 Ian Campbell <ijc@hellion.org.uk> wrote:
>>
>>> +static int fb_deferred_io_set_page_dirty(struct page *page)
>>> +{
>>> + if (!PageDirty(page))
>>> + SetPageDirty(page);
>>> + return 0;
>>> +}
>>
>> <searches, finds the thread. "kernel BUG at lib/radix-tree.c:473!">
>>
>> Is there actually any benefit in setting these pages dirty? Or should
>> this be an empty function? I see claims in the above thread that this
>> driver uses PG_dirty for optimising writeback but I can't immediately
>> locate any code which actually does that.
>
> Hi Andrew,
>
> I hope I have understood your question. You are right that PG_dirty
> isn't used directly in defio. The defio portion does use each
> page_mkwrite callback to build a list of the pages of the framebuffer
> that were written to and then passes that list to pvfb (in this case).
> pvfb then optimizes writeback by interpreting that list according to
> its framebuffer and sending it to its actual destination. I think
> Markus's code in xenfb_deferred_io() and xenfb_send* is doing the
> latter.
Exactly. xenfb_deferred_io() is the callback that receives the list
of pages that have been dirtied from fb_deferred_io_work(). It
computes a rectangle covering all these pages, and passes it to
xenfb_refresh(). Which takes care of sending it to the backend.
[...]
next prev parent reply other threads:[~2008-08-20 12:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-19 6:02 [PATCH] fbdefio: add set_page_dirty handler to deferred IO FB Ian Campbell
2008-08-19 6:38 ` Andrew Morton
2008-08-19 7:13 ` Peter Zijlstra
2008-08-20 8:13 ` Ian Campbell
2008-08-20 8:37 ` Andrew Morton
2008-08-20 18:57 ` Ian Campbell
2008-08-20 19:30 ` Andrew Morton
2008-08-20 19:40 ` Ian Campbell
2008-08-20 19:50 ` Andrew Morton
2008-08-20 23:11 ` Jaya Kumar
2008-08-20 8:46 ` Jaya Kumar
2008-08-20 12:27 ` Markus Armbruster [this message]
2008-08-20 18:47 ` Jeremy Fitzhardinge
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=m3bpznan2i.fsf@crossbow.pond.sub.org \
--to=armbru@redhat.com \
--cc=a.p.zijlstra@chello.nl \
--cc=akpm@linux-foundation.org \
--cc=hannes@saeurebad.de \
--cc=hugh@veritas.com \
--cc=ijc@hellion.org.uk \
--cc=jayakumar.lkml@gmail.com \
--cc=jeremy@goop.org \
--cc=kel@otaku42.de \
--cc=linux-kernel@vger.kernel.org \
--cc=npiggin@suse.de \
--cc=stable@vger.kernel.org \
--cc=torvalds@linux-foundation.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