• J
    Btrfs: do not pin while under spin lock · e78417d1
    Josef Bacik 提交于
    When testing a corrupted fs I noticed I was getting sleep while atomic errors
    when the transaction aborted.  This is because btrfs_pin_extent may need to
    allocate memory and we are calling this under the spin lock.  Fix this by moving
    it out and doing the pin after dropping the spin lock but before dropping the
    mutex, the same way it works when delayed refs run normally.  Thanks,
    Signed-off-by: NJosef Bacik <jbacik@fusionio.com>
    e78417d1
disk-io.c 109.5 KB