Whamcloud - gitweb
LU-793 ptlrpc: fix ptlrpc_request_change_export()
[fs/lustre-release.git] / lustre / target / tgt_handler.c
index 08b40a6..b0c26e0 100644 (file)
@@ -1738,7 +1738,8 @@ int tgt_brw_write(struct tgt_session_info *tsi)
                RETURN(err_serious(-EFAULT));
 
        /* pause before transaction has been started */
-       OBD_FAIL_TIMEOUT(OBD_FAIL_OST_BRW_PAUSE_BULK, (obd_timeout + 1) / 4);
+       CFS_FAIL_TIMEOUT(OBD_FAIL_OST_BRW_PAUSE_BULK, cfs_fail_val > 0 ?
+                        cfs_fail_val : (obd_timeout + 1) / 4);
 
        /* There must be big cache in current thread to process this request
         * if it is NULL then something went wrong and it wasn't allocated,