Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Linux 4.7 compat: inode_lock() and friends #549

Closed
wants to merge 1 commit into from
Closed

Commits on May 20, 2016

  1. Linux 4.7 compat: inode_lock() and friends

    Linux 4.7 changes i_mutex to i_rwsem, and we should used inode_lock and
    inode_lock_shared to do exclusive and shared lock respectively.
    
    We use spl_inode_lock{,_shared}() to hide the difference. Note that on older
    kernel you'll always take an exclusive lock.
    
    We also add all other inode_lock friends. And nested users now should
    explicitly call spl_inode_lock_nested with correct subclass.
    
    Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
    Chunwei Chen committed May 20, 2016
    Configuration menu
    Copy the full SHA
    eece723 View commit details
    Browse the repository at this point in the history