Re: [PATCH 0/3] Fix races on device removal

From: Greg Kroah-Hartman
Date: Thu Jul 30 2020 - 02:54:18 EST


On Wed, Jul 08, 2020 at 03:27:00PM +0200, Lukas Wunner wrote:
> Prevent dynamic SPI device addition below a controller which is
> being removed. To do so, set the controller's "dead" flag using
> kill_device() (patch [3/3]).

Why is the SPI bus allowing this to happen? Don't you have a per-bus
lock that can serialize all of this?

thanks,

greg k-h