Lines Matching defs:async
12 #include "async-thread.h"
555 struct async_submit_bio *async =
559 ret = btrfs_bio_csum(async->bbio);
561 async->bbio->bio.bi_status = ret;
574 struct async_submit_bio *async =
576 struct bio *bio = &async->bbio->bio;
580 btrfs_orig_bbio_end_io(async->bbio);
585 * All of the bios that pass through here are from async helpers.
590 __btrfs_submit_bio(bio, async->bioc, &async->smap, async->mirror_num);
619 * Submit bio to an async queue.
628 struct async_submit_bio *async;
630 async = kmalloc(sizeof(*async), GFP_NOFS);
631 if (!async)
634 async->bbio = bbio;
635 async->bioc = bioc;
636 async->smap = *smap;
637 async->mirror_num = mirror_num;
639 btrfs_init_work(&async->work, run_one_async_start, run_one_async_done,
641 btrfs_queue_work(fs_info->workers, &async->work);