X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosc%2Fosc_request.c;h=42c628e36954ac61507375246344994863982105;hp=557d2c4d9ca6b84c76d656828d9c1f6c288d1196;hb=efa3425c5f5a6763ea834408b982e4df5a90c914;hpb=ea58c4cfb0fc255befbbb7754bd4ed71704a2a2c diff --git a/lustre/osc/osc_request.c b/lustre/osc/osc_request.c index 557d2c4..42c628e 100644 --- a/lustre/osc/osc_request.c +++ b/lustre/osc/osc_request.c @@ -845,9 +845,9 @@ static int osc_should_shrink_grant(struct client_obd *client) if (client->cl_import == NULL) return 0; - if ((client->cl_import->imp_connect_data.ocd_connect_flags & - OBD_CONNECT_GRANT_SHRINK) == 0) - return 0; + if (!OCD_HAS_FLAG(&client->cl_import->imp_connect_data, GRANT_SHRINK) || + client->cl_import->imp_grant_shrink_disabled) + return 0; if (ktime_get_seconds() >= next_shrink - 5) { /* Get the current RPC size directly, instead of going via: