From: wangdi Date: Fri, 17 Jan 2014 10:13:54 +0000 (-0800) Subject: LU-1750 ofd: always update last_id. X-Git-Tag: 2.3.65~80 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=7fd6681466dbc8007032f836808e077fc1fa244c;p=fs%2Flustre-release.git LU-1750 ofd: always update last_id. Always update last_id during orphan cleanup, even though the orphan might be cleanup by the preious request. Change-Id: I824c97b29b5e03906e66f27e044876cf097ce534 Signed-off-by: Wang Di Reviewed-on: http://review.whamcloud.com/4331 Reviewed-by: Alex Zhuravlev Tested-by: Hudson Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Niu Yawei Reviewed-by: Mike Pershin Reviewed-by: Oleg Drokin --- diff --git a/lustre/ofd/ofd_obd.c b/lustre/ofd/ofd_obd.c index 88943af..c21b7f8 100644 --- a/lustre/ofd/ofd_obd.c +++ b/lustre/ofd/ofd_obd.c @@ -1230,6 +1230,7 @@ int ofd_create(const struct lu_env *env, struct obd_export *exp, CERROR("%s:["LPU64"] destroys_in_progress already" " cleared\n", exp->exp_obd->obd_name, ostid_seq(&oa->o_oi)); + ostid_set_id(&oa->o_oi, ofd_seq_last_oid(oseq)); GOTO(out, rc = 0); } diff = ostid_id(&oa->o_oi) - ofd_seq_last_oid(oseq);