From ec9bdde231f43caf5bb57f54d22cba9699f3ba61 Mon Sep 17 00:00:00 2001 From: yangsheng Date: Mon, 5 Jul 2010 21:22:48 +0800 Subject: [PATCH] b=23235 Init lnb[n].lnb_grant_used on recoverable_resent. i=green i=wangdi --- lustre/obdfilter/filter_io.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/obdfilter/filter_io.c b/lustre/obdfilter/filter_io.c index f4e66cd..7b5332b 100644 --- a/lustre/obdfilter/filter_io.c +++ b/lustre/obdfilter/filter_io.c @@ -553,6 +553,7 @@ static int filter_grant_check(struct obd_export *exp, struct obdo *oa, if (resend) { /* this is a recoverable resent */ lnb[n].flags |= OBD_BRW_GRANTED; + lnb[n].lnb_grant_used = 0; rc = 0; continue; } else if (fed->fed_grant < used + bytes) { -- 1.8.3.1