From: Alex Zhuravlev Date: Thu, 18 Oct 2012 18:38:58 +0000 (+0400) Subject: LU-2173 lod: QoS code to give up if no good OSP found X-Git-Tag: 2.3.54~12 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=feeeec1b4b917aaa29f58b3b0a07be55ef091ab1;ds=sidebyside LU-2173 lod: QoS code to give up if no good OSP found on any iteration. this code was removed by mistake in commit 03b988a (LU-2093). Signed-off-by: Alex Zhuravlev Change-Id: Ifa0d3a5ceeaaf84d3ec49e39bd2f337414a216ce Reviewed-on: http://review.whamcloud.com/4300 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin Tested-by: Oleg Drokin --- diff --git a/lustre/lod/lod_qos.c b/lustre/lod/lod_qos.c index 216555a..e5b4565 100644 --- a/lustre/lod/lod_qos.c +++ b/lustre/lod/lod_qos.c @@ -1137,6 +1137,11 @@ static int lod_alloc_qos(const struct lu_env *env, struct lod_object *lo, rc = 0; break; } + + if (rc) { + /* no OST found on this iteration, give up */ + break; + } } if (unlikely(nfound != stripe_cnt)) {