Re: [PATCH 05/10] device-core: use RCU for list of children of a bus

2020-09-30 Thread Maxim Levitsky
On Fri, 2020-09-25 at 13:25 -0400, Paolo Bonzini wrote: > From: Maxim Levitsky > > This fixes the race between device emulation code that tries to find > a child device to dispatch the request to (e.g a scsi disk), > and hotplug of a new device to that bus. > > Note that this doesn't convert all

[PATCH 05/10] device-core: use RCU for list of children of a bus

2020-09-25 Thread Paolo Bonzini
From: Maxim Levitsky This fixes the race between device emulation code that tries to find a child device to dispatch the request to (e.g a scsi disk), and hotplug of a new device to that bus. Note that this doesn't convert all the readers of the list but only these that might go over that list w