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

Both "flock" and "localflock" appear in /proc/mounts

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.13.0, Lustre 2.12.4
    • Lustre 2.13.0, Lustre 2.12.3
    • None
    • 3
    • 9223372036854775807

    Description

      Both "flock" and "localflock" appear in "mount" output, although only "localflock" is set in /etc/fstab:

      root@client:~# mount | grep lustre
      10.0.0.1@o2ib:/testfs on /mnt/testfs type lustre (rw,flock,localflock)
      
      root@client:~# grep lustre /etc/fstab
      10.0.0.1@o2ib:/testfs /mnt/testfs lustre noauto,_netdev,localflock 0 0
      

      Attachments

        Activity

          [LU-12859] Both "flock" and "localflock" appear in /proc/mounts

          Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36934/
          Subject: LU-12859 llite: clear flock when using localflock
          Project: fs/lustre-release
          Branch: b2_12
          Current Patch Set:
          Commit: bfa43920135dacffb77adedeac213966ea450b2c

          gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36934/ Subject: LU-12859 llite: clear flock when using localflock Project: fs/lustre-release Branch: b2_12 Current Patch Set: Commit: bfa43920135dacffb77adedeac213966ea450b2c

          Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/36934
          Subject: LU-12859 llite: clear flock when using localflock
          Project: fs/lustre-release
          Branch: b2_12
          Current Patch Set: 1
          Commit: e5173badfcb6d3448adb0dc46311285253e19e12

          gerrit Gerrit Updater added a comment - Minh Diep (mdiep@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/36934 Subject: LU-12859 llite: clear flock when using localflock Project: fs/lustre-release Branch: b2_12 Current Patch Set: 1 Commit: e5173badfcb6d3448adb0dc46311285253e19e12
          pjones Peter Jones added a comment -

          Landed for 2.13

          pjones Peter Jones added a comment - Landed for 2.13

          Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36452/
          Subject: LU-12859 llite: clear flock when using localflock
          Project: fs/lustre-release
          Branch: master
          Current Patch Set:
          Commit: 22ee4a1f64eca526ef34a3fd89dc4e95bb307732

          gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/36452/ Subject: LU-12859 llite: clear flock when using localflock Project: fs/lustre-release Branch: master Current Patch Set: Commit: 22ee4a1f64eca526ef34a3fd89dc4e95bb307732

          Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/36452
          Subject: LU-12859 llite: clear flock when using localflock
          Project: fs/lustre-release
          Branch: master
          Current Patch Set: 1
          Commit: 2543dd9733580a8dbb553b0f84bd77154a9b91f9

          gerrit Gerrit Updater added a comment - Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/36452 Subject: LU-12859 llite: clear flock when using localflock Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 2543dd9733580a8dbb553b0f84bd77154a9b91f9
          adilger Andreas Dilger added a comment - - edited

          AFAICS, this issue affects the flock mode, not just the display.. It makes it very confusing to know which flock behavior is present on a client node. NOTE: it appears that the "most global" option takes precedence, so in this case "localflock" is overridden by the default "flock" option. It may be possible to work around this issue temporarily by using both "noflock,localflock" mount options to first clear the "flock" option before enabling "localflock".

          The fix needs a small change to ll_options() to fix the parsing of these options. Right now it looks like any one of the options that is passed at mount will set the corresponding LL_SBI_*FLOCK option, but does not clear the other options. Any flock option should clear both of the other option flags, and the last one specified wins.

          adilger Andreas Dilger added a comment - - edited AFAICS, this issue affects the flock mode, not just the display.. It makes it very confusing to know which flock behavior is present on a client node. NOTE: it appears that the "most global" option takes precedence, so in this case " localflock " is overridden by the default " flock " option. It may be possible to work around this issue temporarily by using both " noflock,localflock " mount options to first clear the " flock " option before enabling " localflock ". The fix needs a small change to ll_options() to fix the parsing of these options. Right now it looks like any one of the options that is passed at mount will set the corresponding LL_SBI_*FLOCK option, but does not clear the other options. Any flock option should clear both of the other option flags, and the last one specified wins.

          People

            adilger Andreas Dilger
            adilger Andreas Dilger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: