Whamcloud - gitweb
LU-7159 tests: fix 224c fault injection
[fs/lustre-release.git] / lnet / lnet / lib-move.c
index 6d2ac7a..5b933a2 100644 (file)
@@ -4590,7 +4590,12 @@ LNetPut(lnet_nid_t self, struct lnet_handle_md mdh, enum lnet_ack_req ack,
        if (ack == LNET_ACK_REQ)
                lnet_attach_rsp_tracker(rspt, cpt, md, mdh);
 
-       rc = lnet_send(self, msg, LNET_NID_ANY);
+       if (CFS_FAIL_CHECK_ORSET(CFS_FAIL_PTLRPC_OST_BULK_CB2,
+                                CFS_FAIL_ONCE))
+               rc = -EIO;
+       else
+               rc = lnet_send(self, msg, LNET_NID_ANY);
+
        if (rc != 0) {
                CNETERR("Error sending PUT to %s: %d\n",
                        libcfs_id2str(target), rc);