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

tgt_grant_discard(): avoid tgd->tgd_tot_granted overflowing

    XMLWordPrintable

Details

    • 3
    • 9223372036854775807

    Description

      void tgt_grant_discard(struct obd_export *exp)
      ...
              if (tgd->tgd_tot_granted < ted->ted_grant) {
                      CERROR("%s: tot_granted %llu < cli %s/%p ted_grant %ld\n",
                             obd->obd_name, tgd->tgd_tot_granted,
                             exp->exp_client_uuid.uuid, exp, ted->ted_grant);
              }
              tgd->tgd_tot_granted -= ted->ted_grant;
      ...
      

      If tgd->tgd_tot_granted < ted->ted_grant the decrement makes tgd_tot_granted too big.

      Attachments

        Issue Links

          Activity

            People

              vsaveliev Vladimir Saveliev
              vsaveliev Vladimir Saveliev
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: