1. 01 Aug, 2022 4 commits
    • Linus Torvalds's avatar
      Merge tag 'dlm-6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm · eb43bbac
      Linus Torvalds authored
      Pull dlm updates from David Teigland:
      
       - Delay the cleanup of interrupted posix lock requests until the user
         space result arrives. Previously, the immediate cleanup would lead to
         extraneous warnings when the result arrived.
      
       - Tracepoint improvements, e.g. adding the lock resource name.
      
       - Delay the completion of lockspace creation until one full recovery
         cycle has completed. This allows more error cases to be returned to
         the caller.
      
       - Remove warnings from the locking layer about delayed network replies.
         The recently added midcomms warnings are much more useful.
      
       - Begin the process of deprecating two unused lock-timeout-related
         features. These features now require enabling via a Kconfig option,
         and enabling them triggers deprecation warnings. We expect to remove
         the code in v6.2.
      
      * tag 'dlm-6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm:
        fs: dlm: move kref_put assert for lkb structs
        fs: dlm: don't use deprecated timeout features by default
        fs: dlm: add deprecation Kconfig and warnings for timeouts
        fs: dlm: remove timeout from dlm_user_adopt_orphan
        fs: dlm: remove waiter warnings
        fs: dlm: fix grammar in lowcomms output
        fs: dlm: add comment about lkb IFL flags
        fs: dlm: handle recovery result outside of ls_recover
        fs: dlm: make new_lockspace() wait until recovery completes
        fs: dlm: call dlm_lsop_recover_prep once
        fs: dlm: update comments about recovery and membership handling
        fs: dlm: add resource name to tracepoints
        fs: dlm: remove additional dereference of lksb
        fs: dlm: change ast and bast trace order
        fs: dlm: change posix lock sigint handling
        fs: dlm: use dlm_plock_info for do_unlock_close
        fs: dlm: change plock interrupted message to debug again
        fs: dlm: add pid to debug log
        fs: dlm: plock use list_first_entry
      eb43bbac
    • Alexander Aring's avatar
      fs: dlm: move kref_put assert for lkb structs · 95858989
      Alexander Aring authored
      The unhold_lkb() function decrements the lock's kref, and
      asserts that the ref count was not the final one.  Use the
      kref_put release function (which should not be called) to
      call the assert, rather than doing the assert based on the
      kref_put return value.  Using kill_lkb() as the release
      function doesn't make sense if we only want to assert.
      Signed-off-by: default avatarAlexander Aring <aahringo@redhat.com>
      Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
      95858989
    • Alexander Aring's avatar
      fs: dlm: don't use deprecated timeout features by default · 6b0afc0c
      Alexander Aring authored
      This patch will disable use of deprecated timeout features if
      CONFIG_DLM_DEPRECATED_API is not set.  The deprecated features
      will be removed in upcoming kernel release v6.2.
      Signed-off-by: default avatarAlexander Aring <aahringo@redhat.com>
      Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
      6b0afc0c
    • Alexander Aring's avatar
      fs: dlm: add deprecation Kconfig and warnings for timeouts · 81eeb82f
      Alexander Aring authored
      This patch adds a CONFIG_DLM_DEPRECATED_API Kconfig option
      that must be enabled to use two timeout-related features
      that we intend to remove in kernel v6.2.  Warnings are
      printed if either is enabled and used.  Neither has ever
      been used as far as we know.
      
      . The DLM_LSFL_TIMEWARN lockspace creation flag will be
        removed, along with the associated configfs entry for
        setting the timeout.  Setting the flag and configfs file
        would cause dlm to track how long locks were waiting
        for reply messages.  After a timeout, a kernel message
        would be logged, and a netlink message would be sent
        to userspace.  Recently, midcomms messages have been
        added that produce much better logging about actual
        problems with messages.  No use has ever been found
        for the netlink messages.
      
      . The userspace libdlm API has allowed the DLM_LKF_TIMEOUT
        flag with a timeout value to be set in lock requests.
        The lock request would be cancelled after the timeout.
      Signed-off-by: default avatarAlexander Aring <aahringo@redhat.com>
      Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
      81eeb82f
  2. 31 Jul, 2022 6 commits
  3. 30 Jul, 2022 2 commits
  4. 29 Jul, 2022 28 commits