Re: [libvirt] [PATCH v2] sanlock: Retry after EINPROGRESS

2012-11-15 Thread Eric Blake
On 11/15/2012 03:39 AM, Michal Privoznik wrote: > It may take some time for sanlock to add a lockspace. And if user > restart libvirtd service meanwhile, the fresh daemon can fail adding > the same lockspace with EINPROGRESS. Recent sanlock has > sanlock_inq_lockspace() function which should block

[libvirt] [PATCH v2] sanlock: Retry after EINPROGRESS

2012-11-15 Thread Michal Privoznik
It may take some time for sanlock to add a lockspace. And if user restart libvirtd service meanwhile, the fresh daemon can fail adding the same lockspace with EINPROGRESS. Recent sanlock has sanlock_inq_lockspace() function which should block until lockspace changes state. If we are building agains