From 5fb2ec60cc7783fcdf11a8fdc35ccb0008098f8e Mon Sep 17 00:00:00 2001 From: anserper Date: Tue, 14 Oct 2008 19:17:18 +0000 Subject: [PATCH] Branch b1_8_gate b=17152 i=Johann Lombardi i=Alexey Lyashkov Take additional references to lov while operating over it --- lustre/lov/lov_qos.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lustre/lov/lov_qos.c b/lustre/lov/lov_qos.c index f6533b6..da235a7 100644 --- a/lustre/lov/lov_qos.c +++ b/lustre/lov/lov_qos.c @@ -939,7 +939,6 @@ int qos_prep_create(struct obd_export *exp, struct lov_request_set *set) /* Find a small number of stripes we can use (up to # of active osts). */ stripes = 1; - lov_getref(exp->exp_obd); for (i = 0; i < lov->desc.ld_tgt_count; i++) { if (!lov->lov_tgts[i] || !lov->lov_tgts[i]->ltd_active) @@ -949,7 +948,6 @@ int qos_prep_create(struct obd_export *exp, struct lov_request_set *set) break; stripes++; } - lov_putref(exp->exp_obd); if (stripes < stripes_def) stripes = stripes_def; -- 1.8.3.1