From: Cornelia Huck <cornelia.huck@de.ibm.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Marcel Holtmann <marcel@holtmann.org>,
Heiko Carstens <heiko.carstens@de.ibm.com>,
Martin Schwidefsky <schwidefsky@de.ibm.com>,
Linux-pm mailing list <linux-pm@lists.linux-foundation.org>
Subject: Re: [RFC][Patch 0/3] Fix device_move() vs. dpm_list issues.
Date: Wed, 4 Mar 2009 11:01:31 +0100 [thread overview]
Message-ID: <20090304110131.7adf2eb8@gondolin> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0903031302330.3274-100000@iolanthe.rowland.org>
On Tue, 3 Mar 2009 14:53:18 -0500 (EST),
Alan Stern <stern@rowland.harvard.edu> wrote:
> After looking through your s390 patch more carefully, I get a mixed-up
> feeling -- as though you think dpm_list goes in reverse order.
list_add_tail confused me...
> Therefore all you need to do is add a third argument to device_move();
> it can be a enumeration taking on one of the values
>
> DPM_ORDER_DEV_AFTER_PARENT,
> DPM_ORDER_PARENT_BEFORE_DEV,
> DPM_ORDER_DEV_LAST.
and DPM_ORDER_DO_NOTHING.
>
> (Come to think of it, I don't understand the reason for moving the
> device to the end of dpm_list. What point is there in doing this?)
Completeness. It is not strictly needed.
>
>
> > Given that the callers still need to specify what to do, I find it much
> > easier (and the resulting code much more understandable) if the callers
> > fix up dpm_list...
>
> I disagree. Doing it the way described above would add less than 10
> lines of code to device_move() and one argument to each caller, whereas
> your changes are a lot more extensive.
I'm still not quite convinced, but I'll give it a try.
next prev parent reply other threads:[~2009-03-04 10:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-03 10:20 [RFC][Patch 0/3] Fix device_move() vs. dpm_list issues Cornelia Huck
2009-03-03 14:02 ` Ming Lei
2009-03-03 14:55 ` Alan Stern
2009-03-03 15:24 ` Cornelia Huck
2009-03-03 19:53 ` Alan Stern
2009-03-04 10:01 ` Cornelia Huck [this message]
2009-03-04 1:49 ` Ming Lei
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=20090304110131.7adf2eb8@gondolin \
--to=cornelia.huck@de.ibm.com \
--cc=heiko.carstens@de.ibm.com \
--cc=linux-pm@lists.linux-foundation.org \
--cc=marcel@holtmann.org \
--cc=schwidefsky@de.ibm.com \
--cc=stern@rowland.harvard.edu \
/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