• O
    btrfs: get rid of endio_repair_workers · 5c047a69
    Omar Sandoval 提交于
    This was originally added in commit 8b110e39 ("Btrfs: implement
    repair function when direct read fails") to avoid a deadlock. In that
    commit, the direct I/O read endio executes on the endio_workers
    workqueue, submits a repair bio, and waits for it to complete. The
    repair bio endio must execute on a different workqueue, otherwise it
    could block on the endio_workers workqueue becoming available, which
    won't happen because the original endio is blocked on the repair bio.
    
    As of the previous commit, the original endio doesn't wait for the
    repair bio, so this separate workqueue is unnecessary.
    Reviewed-by: NJosef Bacik <josef@toxicpanda.com>
    Signed-off-by: NOmar Sandoval <osandov@fb.com>
    Signed-off-by: NDavid Sterba <dsterba@suse.com>
    5c047a69
disk-io.c 127.2 KB