Lines Matching refs:async
541 struct async_submit_bio *async = in run_one_async_start() local
545 ret = btrfs_bio_csum(async->bbio); in run_one_async_start()
547 async->bbio->bio.bi_status = ret; in run_one_async_start()
562 struct async_submit_bio *async = in run_one_async_done() local
564 struct bio *bio = &async->bbio->bio; in run_one_async_done()
573 btrfs_bio_end_io(async->bbio, async->bbio->bio.bi_status); in run_one_async_done()
583 btrfs_submit_bio(bio, async->bioc, &async->smap, async->mirror_num); in run_one_async_done()
628 struct async_submit_bio *async; in btrfs_wq_submit_bio() local
630 async = kmalloc(sizeof(*async), GFP_NOFS); in btrfs_wq_submit_bio()
631 if (!async) in btrfs_wq_submit_bio()
634 async->bbio = bbio; in btrfs_wq_submit_bio()
635 async->bioc = bioc; in btrfs_wq_submit_bio()
636 async->smap = *smap; in btrfs_wq_submit_bio()
637 async->mirror_num = mirror_num; in btrfs_wq_submit_bio()
639 btrfs_init_work(&async->work, run_one_async_start, run_one_async_done); in btrfs_wq_submit_bio()
640 btrfs_queue_work(fs_info->workers, &async->work); in btrfs_wq_submit_bio()