Whamcloud - gitweb
b=9678
authoralex <alex>
Thu, 5 Jan 2006 19:46:14 +0000 (19:46 +0000)
committeralex <alex>
Thu, 5 Jan 2006 19:46:14 +0000 (19:46 +0000)
r=adilger

 - free pool after client_obd_cleanup() because the latter may abort in-flight requests from the pool

lustre/osc/osc_request.c

index c65b2ee..b715d93 100644 (file)
@@ -3352,9 +3352,9 @@ int osc_cleanup(struct obd_device *obd)
         /* free memory of osc quota cache */
         lquota_cleanup(quota_interface, obd);
 
+        rc = client_obd_cleanup(obd);
         ptlrpc_free_rq_pool(cli->cl_rq_pool);
 
-        rc = client_obd_cleanup(obd);
         ptlrpcd_decref();
         RETURN(rc);
 }