Re: [libvirt] In libxl_driver, how to lock/unlock objects while doing an operation that runs for a long time?

2012-05-10 Thread Jim Fehlig
Daniel P. Berrange wrote: > On Thu, May 10, 2012 at 11:20:20PM +0800, Oscar Ben wrote: > >> In the discussion : >> http://thread.gmane.org/gmane.comp.emulators.libvirt/53534 >> >> People mentioned about long-term operations' LOCKs there. It seems that, in >> libxl_driver, certain opeati

Re: [libvirt] In libxl_driver, how to lock/unlock objects while doing an operation that runs for a long time?

2012-05-10 Thread Daniel P. Berrange
On Thu, May 10, 2012 at 11:20:20PM +0800, Oscar Ben wrote: > In the discussion : > http://thread.gmane.org/gmane.comp.emulators.libvirt/53534 > > People mentioned about long-term operations' LOCKs there. It seems that, in > libxl_driver, certain opeations may hold a lock for too long, thu

[libvirt] In libxl_driver, how to lock/unlock objects while doing an operation that runs for a long time?

2012-05-10 Thread Oscar Ben
In the discussion : http://thread.gmane.org/gmane.comp.emulators.libvirt/53534 People mentioned about long-term operations' LOCKs there. It seems that, in libxl_driver, certain opeations may hold a lock for too long, thus other operations, even those just do query jobs, would be blocked.