Lines Matching refs:async
555 struct async_submit_bio *async = in run_one_async_start() local
559 ret = btrfs_bio_csum(async->bbio); in run_one_async_start()
561 async->bbio->bio.bi_status = ret; in run_one_async_start()
574 struct async_submit_bio *async = in run_one_async_done() local
576 struct bio *bio = &async->bbio->bio; in run_one_async_done()
580 btrfs_orig_bbio_end_io(async->bbio); in run_one_async_done()
590 __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()
641 btrfs_queue_work(fs_info->workers, &async->work); in btrfs_wq_submit_bio()