cxl: Fix refcounting in kernel API

Michael Ellerman mpe at ellerman.id.au
Wed Jul 8 20:54:08 AEST 2015


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 at neuling.org>
> Acked-by: Ian Munsie <imunsie at 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


More information about the Linuxppc-dev mailing list