All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH] powerpc: fix oops in pcibios_release_device() after pcibios_free_controller()
Date: Wed, 13 Jul 2016 10:52:05 -0300	[thread overview]
Message-ID: <57864785.1090309@linux.vnet.ibm.com> (raw)
In-Reply-To: <5785782D.3010407@linux.vnet.ibm.com>

On 07/12/2016 08:07 PM, Mauricio Faria de Oliveira wrote:
> Can you clarify which are the devices that should be tracked w/ krefs to
> the PHB?

Last night I had forgotten about the fundamental point of krefs - track 
references to pointers - and this answers the question.

I'm looking at the holders of pointers to the phb struct, and it seems
I wasn't too far off w/ the child buses and devices idea -- as the root 
bus (phb->bus) is assigned the phb pointer in the bus->sysdata field,
and it's inherited from parent by child buses and devices.

I'll continue here. Comments always welcome.

-- 
Mauricio Faria de Oliveira
IBM Linux Technology Center

      reply	other threads:[~2016-07-13 13:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-05  1:44 [PATCH] powerpc: fix oops in pcibios_release_device() after pcibios_free_controller() Mauricio Faria de Oliveira
2016-07-05  2:55 ` Benjamin Herrenschmidt
2016-07-05 13:34   ` Mauricio Faria de Oliveira
2016-07-12 23:07   ` Mauricio Faria de Oliveira
2016-07-13 13:52     ` Mauricio Faria de Oliveira [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=57864785.1090309@linux.vnet.ibm.com \
    --to=mauricfo@linux.vnet.ibm.com \
    --cc=benh@kernel.crashing.org \
    --cc=linuxppc-dev@lists.ozlabs.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 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.