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

most uses of IS_ERR_VALUE() are incorrect

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • Lustre 2.6.0, Lustre 2.5.2
    • Lustre 2.5.0
    • None
    • 3
    • 8795

    Description

      We have several places in the code that do something equivalent the following

      int rc = PTR_ERR(foo);
      if (IS_ERR_VALUE(rc))
              bar();
      

      which is wrong.

      Attachments

        Issue Links

          Activity

            [LU-3498] most uses of IS_ERR_VALUE() are incorrect
            haasken Ryan Haasken added a comment -

            Bobi Jam's version of the b2_5 patch has landed:

            http://review.whamcloud.com/#/c/10363/

            I will abandon my b2_5 patch here:

            http://review.whamcloud.com/#/c/10178/

            haasken Ryan Haasken added a comment - Bobi Jam's version of the b2_5 patch has landed: http://review.whamcloud.com/#/c/10363/ I will abandon my b2_5 patch here: http://review.whamcloud.com/#/c/10178/
            haasken Ryan Haasken added a comment -

            John, the patch for b2_5 looks like it's ready to land.

            haasken Ryan Haasken added a comment - John, the patch for b2_5 looks like it's ready to land.

            Here is the port to b2_5: http://review.whamcloud.com/#/c/10178/

            haasken Ryan Haasken added a comment - Here is the port to b2_5: http://review.whamcloud.com/#/c/10178/
            spitzcor Cory Spitz added a comment - - edited

            As John points out in LU-4985, it would be good to port http://review.whamcloud.com/#/c/6759/ to b2_5.

            spitzcor Cory Spitz added a comment - - edited As John points out in LU-4985 , it would be good to port http://review.whamcloud.com/#/c/6759/ to b2_5.

            Patch landed to master for 2.6.0.

            adilger Andreas Dilger added a comment - Patch landed to master for 2.6.0.
            jhammond John Hammond added a comment - Please see http://review.whamcloud.com/6759 .

            People

              jhammond John Hammond
              jhammond John Hammond
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: