Whamcloud - gitweb
Branch HEAD
authorrobert.read <robert.read>
Thu, 30 Jul 2009 18:38:06 +0000 (18:38 +0000)
committerrobert.read <robert.read>
Thu, 30 Jul 2009 18:38:06 +0000 (18:38 +0000)
b=19338

Reverting the patch from 19338 since it has caused 20278, which is worse than the original issue.

lustre/osc/osc_request.c

index ec73add..a1c16a8 100644 (file)
@@ -1077,7 +1077,7 @@ static int osc_del_shrink_grant(struct client_obd *client)
 static void osc_init_grant(struct client_obd *cli, struct obd_connect_data *ocd)
 {
         client_obd_list_lock(&cli->cl_loi_list_lock);
-        cli->cl_avail_grant = ocd->ocd_grant - cli->cl_dirty;
+        cli->cl_avail_grant = ocd->ocd_grant;
         client_obd_list_unlock(&cli->cl_loi_list_lock);
 
         if (ocd->ocd_connect_flags & OBD_CONNECT_GRANT_SHRINK &&