Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • kernel
  • locking
  • rwsem.c
Find file BlameHistoryPermalink
  • Waiman Long's avatar
    locking/rwsem: Fix up_read_non_owner() warning with DEBUG_RWSEMS · 03eeafdd
    Waiman Long authored May 24, 2018
    It was found that the use of up_read_non_owner() in NFS was causing
    the following warning when DEBUG_RWSEMS was configured.
    
      DEBUG_LOCKS_WARN_ON(sem->owner != ((struct task_struct *)(1UL << 0)))
    
    Looking into the rwsem.c file, it was discovered that the corresponding
    down_read_non_owner() function was not setting the owner field properly.
    This is fixed now, and the warning should be gone.
    
    Fixes: 5149cbac
    
     ("locking/rwsem: Add DEBUG_RWSEMS to look for lock/unlock mismatches")
    Signed-off-by: default avatarWaiman Long <longman@redhat.com>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Acked-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
    Tested-by: default avatarGavin Schenk <g.schenk@eckelmann.de>
    Cc: Davidlohr Bueso <dave@stgolabs.net>
    Cc: Dan Williams <dan.j.williams@intel.com>
    Cc: Arnd Bergmann <arnd@arndb.de>
    Cc: linux-nfs@vger.kernel.org
    Cc: stable@vger.kernel.org
    Link: https://lkml.kernel.org/r/1527168398-4291-1-git-send-email-longman@redhat.com
    03eeafdd
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7