Whamcloud - gitweb
LU-1750 ofd: always update last_id.
authorwangdi <di.wang@whamcloud.com>
Fri, 17 Jan 2014 10:13:54 +0000 (02:13 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 23 Apr 2013 05:21:18 +0000 (01:21 -0400)
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 <di.wang@intel.com>
Reviewed-on: http://review.whamcloud.com/4331
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ofd/ofd_obd.c

index 88943af..c21b7f8 100644 (file)
@@ -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);