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

Obtain file size information under locks for HSM release

Details

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

    Description

      In HSM release, it obtains file size and blocks information via @ll_merge_attr without any lock protection, it may get the wrong file size.

      we found a bug that a HSM restore followed by a HSM release will set the file size with 0 wrongly.

      Attachments

        Activity

          [LU-15381] Obtain file size information under locks for HSM release
          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/45935/
          Subject: LU-15381 hsm: update size upon completion of data version
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: dd3b5601ec6905b00d07cbcb8c139c46dd555b3b

          gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45935/ Subject: LU-15381 hsm: update size upon completion of data version Project: fs/lustre-release Branch: master Current Patch Set: Commit: dd3b5601ec6905b00d07cbcb8c139c46dd555b3b

          "Yingjin Qian <qian@ddn.com>" uploaded a new patch: https://review.whamcloud.com/45935
          Subject: LU-15381 hsm: update size upon completion of data version
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: b8d2a67253538f17f46e244a264d02d80a528548

          gerrit Gerrit Updater added a comment - "Yingjin Qian <qian@ddn.com>" uploaded a new patch: https://review.whamcloud.com/45935 Subject: LU-15381 hsm: update size upon completion of data version Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: b8d2a67253538f17f46e244a264d02d80a528548
          qian_wc Qian Yingjin added a comment -

          As we use data version to flush all cache and revoke the locks on all clients, thus we could update the size and block attributes in data version operations (however, it still does not protect with any locks)?

          By this way, we can avoid the glimpse RPC to get the file size?

          Will make a patch sooner.

          qian_wc Qian Yingjin added a comment - As we use data version to flush all cache and revoke the locks on all clients, thus we could update the size and block attributes in data version operations (however, it still does not protect with any locks)? By this way, we can avoid the glimpse RPC to get the file size? Will make a patch sooner.

          People

            qian_wc Qian Yingjin
            qian_wc Qian Yingjin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: