Re: [Xen-devel] Race condition on device add hanling in xl devd

2019-02-28 Thread Marek Marczykowski-Górecki
On Thu, Feb 28, 2019 at 11:08:37AM +0100, Roger Pau Monné wrote: > On Mon, Feb 25, 2019 at 12:14:02AM +0100, Marek Marczykowski-Górecki wrote: > > On Mon, Dec 17, 2018 at 05:09:19PM +0100, Roger Pau Monné wrote: > > > On Mon, Dec 17, 2018 at 02:42:23PM +, Paul Durrant wrote: > > > > I suspect

Re: [Xen-devel] Race condition on device add hanling in xl devd

2019-02-28 Thread Roger Pau Monné
On Mon, Feb 25, 2019 at 12:14:02AM +0100, Marek Marczykowski-Górecki wrote: > On Mon, Dec 17, 2018 at 05:09:19PM +0100, Roger Pau Monné wrote: > > On Mon, Dec 17, 2018 at 02:42:23PM +, Paul Durrant wrote: > > > I suspect I must be remembering a XenServer-specific hack^Wpatch then. > > > I'd

Re: [Xen-devel] Race condition on device add hanling in xl devd

2019-02-24 Thread Marek Marczykowski-Górecki
; > > Cc: Marek Marczykowski-Górecki ; xen- > > > devel ; Wei Liu > > > Subject: Re: [Xen-devel] Race condition on device add hanling in xl devd > > > > > > On Mon, Dec 17, 2018 at 01:11:11PM +, Paul Durrant wrote: > > > > > -Original Mess

Re: [Xen-devel] Race condition on device add hanling in xl devd

2018-12-17 Thread Roger Pau Monné
o: Marek Marczykowski-Górecki > > > > Cc: xen-devel ; Wei Liu > > > > ; Paul Durrant > > > > Subject: Re: [Xen-devel] Race condition on device add hanling in xl > > devd > > > > > > > > On Mon, Dec 17, 2018 at 01:23:15PM +0100, M

Re: [Xen-devel] Race condition on device add hanling in xl devd

2018-12-17 Thread Roger Pau Monné
On Mon, Dec 17, 2018 at 02:23:41PM +0100, Marek Marczykowski-Górecki wrote: > On Mon, Dec 17, 2018 at 02:05:34PM +0100, Roger Pau Monné wrote: > > On Mon, Dec 17, 2018 at 01:23:15PM +0100, Marek Marczykowski-Górecki wrote: > > > On Mon, Dec 17, 2018 at 01:18:55PM +0100, Roger Pau Monné wrote: > >

Re: [Xen-devel] Race condition on device add hanling in xl devd

2018-12-17 Thread Paul Durrant
> -Original Message- > From: Roger Pau Monne > Sent: 17 December 2018 14:32 > To: Paul Durrant > Cc: Marek Marczykowski-Górecki ; xen- > devel ; Wei Liu > Subject: Re: [Xen-devel] Race condition on device add hanling in xl devd > > On Mon, Dec 17, 2018 at 01:

Re: [Xen-devel] Race condition on device add hanling in xl devd

2018-12-17 Thread Roger Pau Monné
On Mon, Dec 17, 2018 at 01:11:11PM +, Paul Durrant wrote: > > -Original Message- > > From: Roger Pau Monne > > Sent: 17 December 2018 13:06 > > To: Marek Marczykowski-Górecki > > Cc: xen-devel ; Wei Liu > > ; Paul Durrant > > Subject: Re

Re: [Xen-devel] Race condition on device add hanling in xl devd

2018-12-17 Thread Marek Marczykowski-Górecki
On Mon, Dec 17, 2018 at 02:05:34PM +0100, Roger Pau Monné wrote: > On Mon, Dec 17, 2018 at 01:23:15PM +0100, Marek Marczykowski-Górecki wrote: > > On Mon, Dec 17, 2018 at 01:18:55PM +0100, Roger Pau Monné wrote: > > > On Mon, Dec 17, 2018 at 01:00:01PM +0100, Marek Marczykowski-Górecki > > >

Re: [Xen-devel] Race condition on device add hanling in xl devd

2018-12-17 Thread Paul Durrant
> -Original Message- > From: Roger Pau Monne > Sent: 17 December 2018 13:06 > To: Marek Marczykowski-Górecki > Cc: xen-devel ; Wei Liu > ; Paul Durrant > Subject: Re: [Xen-devel] Race condition on device add hanling in xl devd > > On Mon, Dec 17, 2018

Re: [Xen-devel] Race condition on device add hanling in xl devd

2018-12-17 Thread Roger Pau Monné
On Mon, Dec 17, 2018 at 01:23:15PM +0100, Marek Marczykowski-Górecki wrote: > On Mon, Dec 17, 2018 at 01:18:55PM +0100, Roger Pau Monné wrote: > > On Mon, Dec 17, 2018 at 01:00:01PM +0100, Marek Marczykowski-Górecki wrote: > > > On Mon, Dec 17, 2018 at 10:40:59AM +0100, Roger Pau Monné wrote: > >

Re: [Xen-devel] Race condition on device add hanling in xl devd

2018-12-17 Thread Marek Marczykowski-Górecki
On Mon, Dec 17, 2018 at 01:18:55PM +0100, Roger Pau Monné wrote: > On Mon, Dec 17, 2018 at 01:00:01PM +0100, Marek Marczykowski-Górecki wrote: > > On Mon, Dec 17, 2018 at 10:40:59AM +0100, Roger Pau Monné wrote: > > > On Sun, Dec 16, 2018 at 02:47:43AM +0100, Marek Marczykowski-Górecki > > >

Re: [Xen-devel] Race condition on device add hanling in xl devd

2018-12-17 Thread Roger Pau Monné
On Mon, Dec 17, 2018 at 01:00:01PM +0100, Marek Marczykowski-Górecki wrote: > On Mon, Dec 17, 2018 at 10:40:59AM +0100, Roger Pau Monné wrote: > > On Sun, Dec 16, 2018 at 02:47:43AM +0100, Marek Marczykowski-Górecki wrote: > > > A workaround could be implemented in hotplug script itself - wait for

Re: [Xen-devel] Race condition on device add hanling in xl devd

2018-12-17 Thread Marek Marczykowski-Górecki
On Mon, Dec 17, 2018 at 10:40:59AM +0100, Roger Pau Monné wrote: > On Sun, Dec 16, 2018 at 02:47:43AM +0100, Marek Marczykowski-Górecki wrote: > > Hi, > > > > I've found a race condition with handling new devices in driver domain. > > xl devd calls hotplug script when new device is detected in

Re: [Xen-devel] Race condition on device add hanling in xl devd

2018-12-17 Thread Roger Pau Monné
On Sun, Dec 16, 2018 at 02:47:43AM +0100, Marek Marczykowski-Górecki wrote: > Hi, > > I've found a race condition with handling new devices in driver domain. > xl devd calls hotplug script when new device is detected in xenstore. At > the same time, asynchronously, kernel create actual backend

[Xen-devel] Race condition on device add hanling in xl devd

2018-12-15 Thread Marek Marczykowski-Górecki
Hi, I've found a race condition with handling new devices in driver domain. xl devd calls hotplug script when new device is detected in xenstore. At the same time, asynchronously, kernel create actual backend device (vif in my case). In rare circumstances (especially under high system load) it