All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cornelia Huck <cornelia.huck@de.ibm.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Marcel Holtmann <marcel@holtmann.org>,
	Linux-pm mailing list <linux-pm@lists.linux-foundation.org>
Subject: Re: Possible problem with device_move()
Date: Mon, 30 Jul 2007 08:42:29 +0200	[thread overview]
Message-ID: <20070730084229.1df8757c@gondolin.boeblingen.de.ibm.com> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0707281123080.16987-100000@netrider.rowland.org>

On Sat, 28 Jul 2007 11:36:42 -0400 (EDT),
Alan Stern <stern@rowland.harvard.edu> wrote:

> Can you tell whether this will ever cause a problem?  Or is it known to
> be safe because whenever you call device_move(), the new parent was
> registered before the device being moved?

Unfortunately, we can't make any assumptions in cio whether the new
parent was registered before the moving device.

(A little background: We have each ccw_device as parent of a subchannel
as discovered during initial sense. In the case of z/VM (a hypervisor),
all subchannels are always consecutively numbered. Now the following
may happen: A dasd on subchannel 0 is detached and a new device, say a
ctc, is defined. As subchannel 0 was free from z/VMs perspective, the
ctc ccw_device now sits on subchannel 0 and the dasd ccw_device is
moved to the artificial 'defunct' subchannel. When the dasd is attached
again, z/VM will hand out the next free subchannel, which we allocate a
subchannel structure for and move the dasd ccw_device to. And here's
the case where the child is older than the parent...)

While we don't do suspend/resume yet on s390, I don't want to rule it
out for the future...

  reply	other threads:[~2007-07-30  6:42 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-28 15:36 Possible problem with device_move() Alan Stern
2007-07-30  6:42 ` Cornelia Huck [this message]
2007-07-30 17:34   ` Alan Stern
2007-07-31  8:33     ` Cornelia Huck
2007-07-31 15:11       ` Alan Stern
2007-07-31 15:27         ` Rafael J. Wysocki
2007-07-31 15:30         ` Cornelia Huck
2007-07-31 18:17           ` Alan Stern
2007-07-31 19:12             ` Rafael J. Wysocki
2007-07-31 20:37               ` Alan Stern
2007-08-01 13:03                 ` Cornelia Huck
2007-08-01 15:22                   ` Alan Stern
2007-08-01 17:04                     ` Cornelia Huck
2007-08-01 17:35                       ` Alan Stern
2007-08-01 19:25                         ` Rafael J. Wysocki
2007-08-01 20:27                           ` Alan Stern
2007-08-02  8:06                             ` Cornelia Huck
2007-08-02 14:19                               ` Alan Stern
2007-08-02 14:50                                 ` Cornelia Huck
2007-08-02 11:21                             ` Rafael J. Wysocki
2007-08-02 14:24                               ` Alan Stern
2007-08-02 14:58                                 ` Rafael J. Wysocki
2007-08-02 15:23                                   ` Alan Stern
2007-08-02 22:39                                     ` Rafael J. Wysocki
2007-08-03 14:56                                       ` Alan Stern
2007-08-03 21:39                                         ` Rafael J. Wysocki
2007-08-06  9:31                                           ` Cornelia Huck
2007-08-06 13:53                                             ` Alan Stern
2007-07-30  6:53 ` Marcel Holtmann
2007-07-30 17:37   ` Alan Stern

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=20070730084229.1df8757c@gondolin.boeblingen.de.ibm.com \
    --to=cornelia.huck@de.ibm.com \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=marcel@holtmann.org \
    --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 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.