[LU-6506] Always false comparison in osc_init_grant Created: 27/Apr/15  Updated: 27/Apr/15

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Oleg Drokin Assignee: WC Triage
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Related
is related to LU-5417 lod_load_striping_locked() fails to d... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

With patch from Dmitry (hash eb2e1b63, LU-5417) we not have a piece of a dead code in osc_init_grant, so we need somebody to take a look and decide if something important was lost or if we can kill it.

        if (cli->cl_avail_grant < 0) {
                CWARN("%s: available grant < 0: avail/ocd/dirty %ld/%u/%ld\n",
                      cli->cl_import->imp_obd->obd_name, cli->cl_avail_grant,
                      ocd->ocd_grant, cli->cl_dirty_pages << PAGE_CACHE_SHIFT);
                /* workaround for servers which do not have the patch from
                 * LU-2679 */
                cli->cl_avail_grant = ocd->ocd_grant;
        }

Note that cl_avail_grant is now unsigned, so could never be < 0.


Generated at Sat Feb 10 02:00:48 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.