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

ll_umount being improper use of cached mountpoint from mount time

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • Upstream
    • Lustre 2.9.0, Lustre 2.10.0, Lustre 2.11.0
    • None
    • 3
    • 9223372036854775807

    Description

      Al Viro chimed in complaining about patch from LU-1882 - http://review.whamcloud.com/20061
       
      Basically the problem is we cache sbi->ll_mnt.mnt as

      ยป       sbi->ll_mnt.mnt = current->fs->root.mnt;
      

      This is prone to many errors, in particular: did not get reference count, so this mount struct might disappear, it does not take bind mounts into account not mount --move.
      Might result in kernel panics in certain conditions.

      Overall original patch is trying to "fix" something that's not broken in the kernel

      If somebody does stat mountpoint in a tight loop, you will get -EBUSY there.
      No matter what. What's more, you might very well get it after some check in
      ->umount_begin() has told you that at the moment the thing you were trying to
      umount was not busy - just before the next stat hits.

      The patch needs to be reworked and we just need to add some extra retrying logic in the test framework instead I guess.

      Attachments

        Issue Links

          Activity

            [LU-10824] ll_umount being improper use of cached mountpoint from mount time

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45609/
            Subject: LU-10824 llite: make foreign symlinks aware of mount namespaces
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 942b4e118677af587f66ce74a3b25b0eb184678b

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/45609/ Subject: LU-10824 llite: make foreign symlinks aware of mount namespaces Project: fs/lustre-release Branch: master Current Patch Set: Commit: 942b4e118677af587f66ce74a3b25b0eb184678b

            "James Simmons <jsimmons@infradead.org>" uploaded a new patch: https://review.whamcloud.com/45609
            Subject: LU-10824 llite: make foreign symlinks aware of mount namespaces
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 929a30260415f03f76de9412e424c0cbf4a779e3

            gerrit Gerrit Updater added a comment - "James Simmons <jsimmons@infradead.org>" uploaded a new patch: https://review.whamcloud.com/45609 Subject: LU-10824 llite: make foreign symlinks aware of mount namespaces Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 929a30260415f03f76de9412e424c0cbf4a779e3

            "James Simmons <jsimmons@infradead.org>" uploaded a new patch: https://review.whamcloud.com/45608
            Subject: LU-10824 llite: remove may_umount() loop
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 30c075f11fea9e12839aa8921868c563db9e1c33

            gerrit Gerrit Updater added a comment - "James Simmons <jsimmons@infradead.org>" uploaded a new patch: https://review.whamcloud.com/45608 Subject: LU-10824 llite: remove may_umount() loop Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 30c075f11fea9e12839aa8921868c563db9e1c33

            Need another patch to resolve this completely.

            simmonsja James A Simmons added a comment - Need another patch to resolve this completely.
            pjones Peter Jones added a comment -

            Landed for 2.12

            pjones Peter Jones added a comment - Landed for 2.12

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33025/
            Subject: LU-10824 llite: don't use ll_mnt to get fstype name
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 5793d80109ac881a1e2a84307a4372f92b97cae0

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/33025/ Subject: LU-10824 llite: don't use ll_mnt to get fstype name Project: fs/lustre-release Branch: master Current Patch Set: Commit: 5793d80109ac881a1e2a84307a4372f92b97cae0

            James Simmons (uja.ornl@yahoo.com) uploaded a new patch: https://review.whamcloud.com/33025
            Subject: LU-10824 llite: don't use ll_mnt to get fstype name
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 8ff4d33ad5dffea401b417a1d3052b885d51a621

            gerrit Gerrit Updater added a comment - James Simmons (uja.ornl@yahoo.com) uploaded a new patch: https://review.whamcloud.com/33025 Subject: LU-10824 llite: don't use ll_mnt to get fstype name Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 8ff4d33ad5dffea401b417a1d3052b885d51a621

            People

              simmonsja James A Simmons
              green Oleg Drokin
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: