[libvirt] [PATCH] sanlock: Retry after EINPROGRESS

2012-11-12 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. Hence, we should retry a few times before claiming an error. This issue can be easily reproduced: for i in {1..1000} ; do echo

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

2012-11-12 Thread Eric Blake
On 11/12/2012 09:01 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. Hence, we should retry a few times > before claiming an error. This issue