Lines Matching defs:async
13 #include "async-thread.h"
631 struct async_submit_bio *async =
635 ret = btrfs_bio_csum(async->bbio);
637 async->bbio->bio.bi_status = errno_to_blk_status(ret);
652 struct async_submit_bio *async =
654 struct bio *bio = &async->bbio->bio;
663 btrfs_bio_end_io(async->bbio, bio->bi_status);
668 * All of the bios that pass through here are from async helpers.
673 btrfs_submit_bio(bio, async->bioc, &async->smap, async->mirror_num);
709 * Submit bio to an async queue.
718 struct async_submit_bio *async;
720 async = kmalloc_obj(*async, GFP_NOFS);
721 if (!async)
724 async->bbio = bbio;
725 async->bioc = bioc;
726 async->smap = *smap;
727 async->mirror_num = mirror_num;
729 btrfs_init_work(&async->work, run_one_async_start, run_one_async_done);
730 btrfs_queue_work(fs_info->workers, &async->work);