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

2020-07-30 Thread Greg Kroah-Hartman
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

[PATCH 0/3] Fix races on device removal

2020-07-08 Thread Lukas Wunner
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]). Serialize access to a device's "dead" flag with a newly introduced rw_semaphore in lieu of the device_lock to avoid deadlocks occurring

[PATCH 0/3] Fix races on device removal

2020-07-08 Thread Lukas Wunner
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]). Serialize access to a device's "dead" flag with a newly introduced rw_semaphore in lieu of the device_lock to avoid deadlocks occurring