linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Michael Ellerman <mpe@ellerman.id.au>
To: Michael Neuling <mikey@neuling.org>, benh@kernel.crashing.org
Cc: linuxppc-dev@ozlabs.org, Michael Neuling <mikey@neuling.org>,
	imunsie@au.ibm.com
Subject: Re: cxl: Fix refcounting in kernel API
Date: Wed,  8 Jul 2015 20:54:08 +1000 (AEST)	[thread overview]
Message-ID: <20150708105408.82DA9140AF3@ozlabs.org> (raw)
In-Reply-To: <1436230877-14542-1-git-send-email-mikey@neuling.org>

On Tue, 2015-07-07 at 01:01:17 UTC, Michael Neuling wrote:
> Currently the kernel API AFU dev refcounting is done on context start and stop.
> This patch moves this refcounting to context init and release, bringing it
> inline with how the userspace API does it.
> 
> Without this we've seen the refcounting on the AFU get out of whack between the
> user and kernel API usage.  This causes the AFU structures to be freed when
> they are actually still in use.
> 
> This fixes some kref warnings we've been seeing and spurious ErrIVTE IRQs.
> 
> Signed-off-by: Michael Neuling <mikey@neuling.org>
> Acked-by: Ian Munsie <imunsie@au1.ibm.com>

Applied to powerpc fixes, thanks.

https://git.kernel.org/cgit/linux/kernel/git/powerpc/linux.git/commit/?h=fixes&id=3f8dc44d88d3e86178eb9322c779c599f3745b21

cheers

      parent reply	other threads:[~2015-07-08 10:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-07  1:01 [PATCH] cxl: Fix refcounting in kernel API Michael Neuling
2015-07-07  1:12 ` Ian Munsie
2015-07-08 10:54 ` Michael Ellerman [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=20150708105408.82DA9140AF3@ozlabs.org \
    --to=mpe@ellerman.id.au \
    --cc=benh@kernel.crashing.org \
    --cc=imunsie@au.ibm.com \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=mikey@neuling.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;
as well as URLs for NNTP newsgroup(s).