Whamcloud - gitweb
LU-14361 statahead: return ENOENT for batched statahead
[fs/lustre-release.git] / lustre / mdt / mdt_batch.c
index 2dff768..27b17ef 100644 (file)
@@ -320,8 +320,6 @@ int mdt_batch(struct tgt_session_info *tsi)
 
                        tsi->tsi_batch_idx = handled_update_count;
                        rc = h->th_act(tsi);
-                       if (rc)
-                               GOTO(out, rc);
 next:
                        /*
                         * As @repmsg may be changed if the reply buffer is
@@ -332,6 +330,9 @@ next:
                                grown = true;
                        }
 
+                       if (rc)
+                               GOTO(out, rc);
+
                        repmsg->lm_result = rc;
                        mdt_thread_info_reset(info);