Lines Matching refs:async
12 #include "async-thread.h"
564 struct async_submit_bio *async =
568 ret = btrfs_bio_csum(async->bbio);
570 async->bbio->bio.bi_status = ret;
585 struct async_submit_bio *async =
587 struct bio *bio = &async->bbio->bio;
596 btrfs_orig_bbio_end_io(async->bbio);
601 * All of the bios that pass through here are from async helpers.
606 __btrfs_submit_bio(bio, async->bioc, &async->smap, async->mirror_num);
642 * Submit bio to an async queue.
651 struct async_submit_bio *async;
653 async = kmalloc(sizeof(*async), GFP_NOFS);
654 if (!async)
657 async->bbio = bbio;
658 async->bioc = bioc;
659 async->smap = *smap;
660 async->mirror_num = mirror_num;
662 btrfs_init_work(&async->work, run_one_async_start, run_one_async_done);
663 btrfs_queue_work(fs_info->workers, &async->work);