Skip to content
  • Jan Kara's avatar
    quota: Improve locking · cc33412f
    Jan Kara authored
    
    
    We implement dqget() and dqput() that need neither dqonoff_mutex nor dqptr_sem.
    Then move dqget() and dqput() calls so that they are not called from under
    dqptr_sem. This is important because filesystem callbacks aren't called from
    under dqptr_sem which used to cause *lots* of problems with lock ranking
    (and with OCFS2 they became close to unsolvable).
    
    The patch also removes two functions which were introduced solely because OCFS2
    needed them to cope with the old locking scheme. As time showed, they were not
    enough for OCFS2 anyway and it would be unnecessary work to adapt them to the
    new locking scheme in which they aren't needed.  As a result OCFS2 needs the
    following patch to compile properly with quotas.  Sorry to any bisecters which
    hit this in advance.
    
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    cc33412f