[PATCH] powerpc/eeh: Fix race with driver un/bind
Russell Currey
ruscur at russell.cc
Mon Mar 26 10:30:03 AEDT 2018
On Fri, 2018-03-23 at 17:33 +1100, Benjamin Herrenschmidt wrote:
> On Fri, 2018-03-23 at 16:44 +1100, Michael Neuling wrote:
>
> .../...
>
> > This fixes the problem in the same way the generic PCIe AER code
> > (in
> > drivers/pci/pcie/aer/aerdrv_core.c) does. It makes the EEH code
> > hold
> > the device_lock() before performing the driver EEH callbacks. This
> > ensures either the callbacks are no longer register, or if they are
> > registered the driver will not be removed from underneath us.
> >
> > Signed-off-by: Michael Neuling <mikey at neuling.org>
>
> Generally ok, minor nits though and do we want a CC stable ?
I definitely think this should go to stable.
More information about the Linuxppc-dev
mailing list