+ write_lock(&qsd->qsd_lock);
+
+ /* check if the reintegration has already started or finished */
+ if ((qqi->qqi_glb_uptodate && qqi->qqi_slv_uptodate) ||
+ qqi->qqi_reint || qsd->qsd_stopping || qsd->qsd_updating)
+ GOTO(out_lock, delay = true);
+
+ /* there could be some unfinished global or index entry updates
+ * (very unlikely), to avoid them messing up with the reint
+ * procedure, we just return and try to re-start reint later. */