|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH][linux 2.6.18] remove pointless error handling in scsiback
On 07/01/2014 05:39 PM, Jan Beulich wrote: On 01.07.14 at 17:27, <"jgross@xxxxxxxx".non-mime.internet> wrote:From: Juergen Gross <jgross@xxxxxxxx> It makes no sense to try repeating traversing the lun list in case of a possible mismatch between the original counting of luns and the real processing.Perhaps the retry logic isn't correct, but with the lock being dropped between the two loops I'm not sure the retry makes no sense. Can you explain? In theory the number of LUNs could have just changed between counting them and evaluating them. The counting isn't redone, so what's the point of retrying? What are the chances a matching LUN will appear and disappear in just the correct timing? You could argue the counting should be included in the retry loop. But then doing a limited number of retries is only decreasing the chance of a problem, not eliminating it. The real fix would be to process the LUNs in the first run without using an intermediate buffer by filling the domU's buffer directly. This would avoid all race conditions. Juergen Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |