Skip to content
Snippets Groups Projects
  • Avi Kivity's avatar
    e74f5a0d
    mutex: remove _locked member · e74f5a0d
    Avi Kivity authored
    It just adds complexity, and doesn't reduce locking overhead, as we must
    take the spinlock anyway during unlock.
    
    Remove it, since it makes conversion to a recursive mutex (needed
    by fs/vfs/vfs_mount.c) more complicated.
    e74f5a0d
    History
    mutex: remove _locked member
    Avi Kivity authored
    It just adds complexity, and doesn't reduce locking overhead, as we must
    take the spinlock anyway during unlock.
    
    Remove it, since it makes conversion to a recursive mutex (needed
    by fs/vfs/vfs_mount.c) more complicated.