Whamcloud - gitweb
LU-5319 mdc: add max modify RPCs in flight variable
[fs/lustre-release.git] / lustre / mdc / mdc_request.c
index 82bc3c1..999e81a 100644 (file)
@@ -2756,8 +2756,12 @@ static int mdc_setup(struct obd_device *obd, struct lustre_cfg *cfg)
         if (rc) {
                 mdc_cleanup(obd);
                 CERROR("failed to setup llogging subsystems\n");
+               RETURN(rc);
         }
 
+       spin_lock_init(&cli->cl_mod_rpcs_lock);
+       cli->cl_max_mod_rpcs_in_flight = OBD_MAX_RIF_DEFAULT - 1;
+
         RETURN(rc);
 
 err_close_lock: