From: Martin Schwidefsky <schwidefsky@de.ibm.com>
To: "Serge E. Hallyn" <serue@us.ibm.com>
Cc: Christoph Hellwig <hch@infradead.org>,
lkml <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/3] kthread: update s390 cmm driver to use kthread
Date: Mon, 28 Aug 2006 11:00:22 +0200 [thread overview]
Message-ID: <1156755622.15093.10.camel@localhost> (raw)
In-Reply-To: <20060825200359.GC13805@sergelap.austin.ibm.com>
On Fri, 2006-08-25 at 15:03 -0500, Serge E. Hallyn wrote:
> Ok, the patch in -mm does kthread_stop() on module_exit, but still uses
> the timer and cmm_thread_wait.
Yes, the timer and cmm_thread_wait are there to implement the timed page
pool.
> I'm not clear what the timer is actually trying to do, or why there is a
> separate cmm_pages_target and cmm_timed_pages_target. So I'm sure the
> below patch on top of -mm2 is wrong (it compiles, but I just noticed
> 2.6.18-rc4-mm2 doesn't boot without this patch either) but hopefully
> Heiko or Martin can tell me what would be the right way, or implement
> it?
Yes, it is wrong. Trying to "fix" code without understanding it is waste
of time. The while loop in the cmm_thread is supposed to continue until
the target numbers for the standard page pool and the timed page pool
have been reached. Your patch adds a schedule_timeout between every call
to cmm_alloc_pages.
--
blue skies,
Martin.
Martin Schwidefsky
Linux for zSeries Development & Services
IBM Deutschland Entwicklung GmbH
"Reality continues to ruin my life." - Calvin.
prev parent reply other threads:[~2006-08-28 9:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-24 21:22 [PATCH 1/3] kthread: update s390 cmm driver to use kthread Serge E. Hallyn
2006-08-25 8:53 ` Martin Schwidefsky
2006-08-25 10:13 ` Martin Schwidefsky
2006-08-25 19:04 ` Serge E. Hallyn
2006-08-25 14:38 ` Christoph Hellwig
2006-08-25 20:03 ` Serge E. Hallyn
2006-08-26 6:32 ` Heiko Carstens
2006-08-27 18:51 ` Serge E. Hallyn
2006-08-28 8:30 ` Martin Schwidefsky
2006-08-28 13:37 ` Heiko Carstens
2006-08-28 14:48 ` Serge E. Hallyn
2006-08-28 9:00 ` Martin Schwidefsky [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=1156755622.15093.10.camel@localhost \
--to=schwidefsky@de.ibm.com \
--cc=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=serue@us.ibm.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.