Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-6506

Always false comparison in osc_init_grant

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • None
    • 3
    • 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.

      Attachments

        Issue Links

          Activity

            People

              wc-triage WC Triage
              green Oleg Drokin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: