Re: [libvirt PATCH] nodedev: switch to udev 'bind' events

2022-09-23 Thread Laine Stump
On 9/22/22 12:41 PM, Jonathon Jongsma wrote: On 9/22/22 3:59 AM, Erik Skultety wrote: On Tue, Sep 20, 2022 at 02:23:23PM -0500, Jonathon Jongsma wrote: Rather than listening to 'add' udev events, listen for 'bind' events instead. When we get an 'add' event, the sysfs tree for the device is

Re: [libvirt PATCH] nodedev: switch to udev 'bind' events

2022-09-22 Thread Jonathon Jongsma
On 9/22/22 3:59 AM, Erik Skultety wrote: On Tue, Sep 20, 2022 at 02:23:23PM -0500, Jonathon Jongsma wrote: Rather than listening to 'add' udev events, listen for 'bind' events instead. When we get an 'add' event, the sysfs tree for the device is often not ready yet. In that case we sleep in a

Re: [libvirt PATCH] nodedev: switch to udev 'bind' events

2022-09-22 Thread Erik Skultety
On Tue, Sep 20, 2022 at 02:23:23PM -0500, Jonathon Jongsma wrote: > Rather than listening to 'add' udev events, listen for 'bind' events > instead. When we get an 'add' event, the sysfs tree for the device is > often not ready yet. In that case we sleep in a loop until the sysfs > tree appears, or

Re: [libvirt PATCH] nodedev: switch to udev 'bind' events

2022-09-21 Thread Laine Stump
On 9/20/22 3:23 PM, Jonathon Jongsma wrote: Rather than listening to 'add' udev events, listen for 'bind' events instead. When we get an 'add' event, the sysfs tree for the device is often not ready yet. In that case we sleep in a loop until the sysfs tree appears, or give up after a timeout.

[libvirt PATCH] nodedev: switch to udev 'bind' events

2022-09-20 Thread Jonathon Jongsma
Rather than listening to 'add' udev events, listen for 'bind' events instead. When we get an 'add' event, the sysfs tree for the device is often not ready yet. In that case we sleep in a loop until the sysfs tree appears, or give up after a timeout. udev added the 'bind' event to give userspace a