Whamcloud - gitweb
LU-3569 ofd: packing ost_idx in IDIF
[fs/lustre-release.git] / lustre / target / out_handler.c
index ab75768..a848f87 100644 (file)
@@ -1269,6 +1269,8 @@ int out_handle(struct tgt_session_info *tsi)
 
        /* Prepare the update reply buffer */
        update_reply = req_capsule_server_get(pill, &RMF_UPDATE_REPLY);
+       if (update_reply == NULL)
+               RETURN(err_serious(-EPROTO));
        update_init_reply_buf(update_reply, count);
        tti->tti_u.update.tti_update_reply = update_reply;
 
@@ -1276,6 +1278,8 @@ int out_handle(struct tgt_session_info *tsi)
        if (rc != 0)
                RETURN(rc);
 
+       tti->tti_mult_trans = !req_is_replay(tgt_ses_req(tsi));
+
        /* Walk through updates in the request to execute them synchronously */
        off = cfs_size_round(offsetof(struct update_buf, ub_bufs[0]));
        for (i = 0; i < count; i++) {