Details

    • 3
    • 9223372036854775807

    Description

      Currently, the last unlink of an inode sends back the inode attributes from the MDS, but the client ignores them. This results in i_nlink on the inode (in memory on the client) staying at one after it has been fully unlinked, which means it stays in memory until discarded from pressure. This is also problematic for wrapfs atop Lustre, would like to use the nlink count to be certain the file is really gone.

      The only attribute which is relevant on a fully unlinked inode is i_nlink, so we just read that out. Patch coming momentarily.

      Attachments

        Issue Links

          Activity

            [LU-10131] Update inode attributes on unlink

            Yes, I know - Andrew and I hashed out the new patch together. FWIW, I don't think test 76 could pass with that approach to the i_nlink update, though I might be wrong.

            paf Patrick Farrell (Inactive) added a comment - Yes, I know - Andrew and I hashed out the new patch together. FWIW, I don't think test 76 could pass with that approach to the i_nlink update, though I might be wrong.

            The patch http://review.whamcloud.com/19164 in LU-7925 was the one that removed the i_nlink update.

            adilger Andreas Dilger added a comment - The patch http://review.whamcloud.com/19164 in LU-7925 was the one that removed the i_nlink update.

            John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/29785/
            Subject: LU-10131 llite: Update i_nlink on unlink
            Project: fs/lustre-release
            Branch: b2_10
            Current Patch Set:
            Commit: 00fea22a18bf1bec71869be2fc5c661ed5d99b4d

            gerrit Gerrit Updater added a comment - John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/29785/ Subject: LU-10131 llite: Update i_nlink on unlink Project: fs/lustre-release Branch: b2_10 Current Patch Set: Commit: 00fea22a18bf1bec71869be2fc5c661ed5d99b4d

            Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/29785
            Subject: LU-10131 llite: Update i_nlink on unlink
            Project: fs/lustre-release
            Branch: b2_10
            Current Patch Set: 1
            Commit: b819421c7873dee9b6c9e904776510d5c7896b12

            gerrit Gerrit Updater added a comment - Minh Diep (minh.diep@intel.com) uploaded a new patch: https://review.whamcloud.com/29785 Subject: LU-10131 llite: Update i_nlink on unlink Project: fs/lustre-release Branch: b2_10 Current Patch Set: 1 Commit: b819421c7873dee9b6c9e904776510d5c7896b12
            pjones Peter Jones added a comment -

            Landed for 2.11

            pjones Peter Jones added a comment - Landed for 2.11

            Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/29651/
            Subject: LU-10131 llite: Update i_nlink on unlink
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 947b22b08d3725852a811a9e330562dd986d7336

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/29651/ Subject: LU-10131 llite: Update i_nlink on unlink Project: fs/lustre-release Branch: master Current Patch Set: Commit: 947b22b08d3725852a811a9e330562dd986d7336

            Patrick Farrell (paf@cray.com) uploaded a new patch: https://review.whamcloud.com/29651
            Subject: LU-10131 llite: Update i_nlink on unlink
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 14f7e4c59437b52222136382e12773aa5e353b33

            gerrit Gerrit Updater added a comment - Patrick Farrell (paf@cray.com) uploaded a new patch: https://review.whamcloud.com/29651 Subject: LU-10131 llite: Update i_nlink on unlink Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 14f7e4c59437b52222136382e12773aa5e353b33

            People

              paf Patrick Farrell (Inactive)
              paf Patrick Farrell (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: