X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosc%2Fosc_request.c;h=a33641dd8a875226b4aac8fa4f806334342d1412;hp=f2a8dd748b5b31acb54b04e93ad53c76a1cc71f8;hb=117f587bc3e60f4dd1c939f8488e43cb752c12ca;hpb=f07508d17b49574c7ea47a855c6e8af2b23c3add diff --git a/lustre/osc/osc_request.c b/lustre/osc/osc_request.c index f2a8dd7..a33641d 100644 --- a/lustre/osc/osc_request.c +++ b/lustre/osc/osc_request.c @@ -843,8 +843,10 @@ static int osc_should_shrink_grant(struct client_obd *client) return 0; if (!OCD_HAS_FLAG(&client->cl_import->imp_connect_data, GRANT_SHRINK) || - client->cl_import->imp_grant_shrink_disabled) + client->cl_import->imp_grant_shrink_disabled) { + osc_update_next_shrink(client); return 0; + } if (ktime_get_seconds() >= next_shrink - 5) { /* Get the current RPC size directly, instead of going via: