Home
last modified time | relevance | path

Searched refs:workers (Results 1 – 4 of 4) sorted by relevance

/fs/btrfs/
Dasync-thread.c37 struct btrfs_workers *workers; member
67 static int __btrfs_start_workers(struct btrfs_workers *workers);
104 worker->workers->idle_thresh / 2) { in check_idle_worker()
106 spin_lock_irqsave(&worker->workers->lock, flags); in check_idle_worker()
112 &worker->workers->idle_list); in check_idle_worker()
114 spin_unlock_irqrestore(&worker->workers->lock, flags); in check_idle_worker()
125 worker->workers->idle_thresh) { in check_busy_worker()
127 spin_lock_irqsave(&worker->workers->lock, flags); in check_busy_worker()
132 &worker->workers->worker_list); in check_busy_worker()
134 spin_unlock_irqrestore(&worker->workers->lock, flags); in check_busy_worker()
[all …]
Dasync-thread.h112 void btrfs_queue_worker(struct btrfs_workers *workers, struct btrfs_work *work);
113 int btrfs_start_workers(struct btrfs_workers *workers);
114 void btrfs_stop_workers(struct btrfs_workers *workers);
115 void btrfs_init_workers(struct btrfs_workers *workers, char *name, int max,
Ddisk-io.c726 info->workers.max_workers, in btrfs_async_submit_limit()
816 btrfs_queue_worker(&fs_info->workers, &async->work); in btrfs_wq_submit_bio()
2160 btrfs_init_workers(&fs_info->workers, "worker", in open_ctree()
2182 fs_info->workers.idle_thresh = 16; in open_ctree()
2183 fs_info->workers.ordered = 1; in open_ctree()
2226 ret = btrfs_start_workers(&fs_info->workers); in open_ctree()
2515 btrfs_stop_workers(&fs_info->workers); in open_ctree()
3126 btrfs_stop_workers(&fs_info->workers); in close_ctree()
Dctree.h1176 struct btrfs_workers workers; member