From: Roger Pau Monne Date: Fri, 21 Jun 2013 10:56:53 +0000 (+0200) Subject: xen-blkback: workaround compiler bug in gcc 4.1 X-Git-Tag: v3.11-rc3~32^2~9^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d9105433ff471d2c688817e98804029c074a623;p=pandora-kernel.git xen-blkback: workaround compiler bug in gcc 4.1 The code generat with gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-54) creates an unbound loop for the second foreach_grant_safe loop in purge_persistent_gnt. The workaround is to avoid having this second loop and instead perform all the work inside the first loop by adding a new variable, clean_used, that will be set when all the desired persistent grants have been removed and we need to iterate over the remaining ones to remove the WAS_ACTIVE flag. Signed-off-by: Roger Pau Monné Reported-by: Tom O'Neill Reported-by: Konrad Rzeszutek Wilk Cc: Konrad Rzeszutek Wilk Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed