Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b182ea
)
Branch HEAD
author
bwzhou
<bwzhou>
Tue, 22 Jan 2008 06:19:08 +0000
(06:19 +0000)
committer
bwzhou
<bwzhou>
Tue, 22 Jan 2008 06:19:08 +0000
(06:19 +0000)
b=13380
r=nathan, adilger
LLNL's fix for occasional failure case of test 50, 51 and 52 of recovery-small
lustre/lov/lov_qos.c
patch
|
blob
|
history
diff --git
a/lustre/lov/lov_qos.c
b/lustre/lov/lov_qos.c
index
de2ae53
..
37ce370
100644
(file)
--- a/
lustre/lov/lov_qos.c
+++ b/
lustre/lov/lov_qos.c
@@
-730,12
+730,12
@@
static int alloc_qos(struct obd_export *exp, int *idx_arr, int *stripe_cnt,
good_osts++;
}
+ if (good_osts < stripe_cnt_min)
+ GOTO(out_up_write, rc = -EAGAIN);
+
if (!total_bavail)
GOTO(out_up_write, rc = -ENOSPC);
- if (good_osts < stripe_cnt_min)
- GOTO(out_up_write, rc = -EAGAIN);
-
/* We have enough osts */
if (good_osts < *stripe_cnt)
*stripe_cnt = good_osts;