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

lnet_selftest_init does not set rc on allocation failure

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.15.0
    • Lustre 2.15.0
    • None
    • 3
    • 9223372036854775807

    Description

      static int __init
      lnet_selftest_init(void)
      {
              int nscheds;
              int rc;
              int i;        rc = cfs_wi_sched_create("lst_s", lnet_cpt_table(), CFS_CPT_ANY,
                                       1, &lst_sched_serial);
              if (rc != 0) {
                      CERROR("Failed to create serial WI scheduler for LST\n");
                      return rc;
              }
              lst_init_step = LST_INIT_WI_SERIAL;        nscheds = cfs_cpt_number(lnet_cpt_table());
              CFS_ALLOC_PTR_ARRAY(lst_sched_test, nscheds);
              if (lst_sched_test == NULL)
                      goto error;
      ...
      error:
              lnet_selftest_exit();
              return rc;
       

      should set rc to -ENOMEM before that goto

      Attachments

        Activity

          [LU-15328] lnet_selftest_init does not set rc on allocation failure
          pjones Peter Jones added a comment -

          Landed for 2.15

          pjones Peter Jones added a comment - Landed for 2.15

          "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45763/
          Subject: LU-15328 lnet: Set rc to ENOMEM in lnet_selftest_init on error
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: a7030f40434769b6b9e225c2e516e6e98d4b441a

          gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45763/ Subject: LU-15328 lnet: Set rc to ENOMEM in lnet_selftest_init on error Project: fs/lustre-release Branch: master Current Patch Set: Commit: a7030f40434769b6b9e225c2e516e6e98d4b441a

          "Oleg Drokin <green@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/45763
          Subject: LU-15328 lnet: Set rc to ENOMEM in lnet_selftest_init on error
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 7d20b350e79d89eed5459ef96101f3e9c9f52431

          gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/45763 Subject: LU-15328 lnet: Set rc to ENOMEM in lnet_selftest_init on error Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 7d20b350e79d89eed5459ef96101f3e9c9f52431

          People

            green Oleg Drokin
            green Oleg Drokin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: