Lines Matching full:thresh
44 int thresh; member
80 * to support "thresh == NO_THRESHOLD" case, but it requires in btrfs_workqueue_normal_congested()
84 if (wq->normal->thresh == NO_THRESHOLD) in btrfs_workqueue_normal_congested()
87 return atomic_read(&wq->normal->pending) > wq->normal->thresh * 2; in btrfs_workqueue_normal_congested()
115 unsigned int flags, int limit_active, int thresh) in __btrfs_alloc_workqueue() argument
125 if (thresh == 0) in __btrfs_alloc_workqueue()
126 thresh = DFT_THRESHOLD; in __btrfs_alloc_workqueue()
128 if (thresh < DFT_THRESHOLD) { in __btrfs_alloc_workqueue()
130 ret->thresh = NO_THRESHOLD; in __btrfs_alloc_workqueue()
138 ret->thresh = thresh; in __btrfs_alloc_workqueue()
168 int thresh) in btrfs_alloc_workqueue() argument
177 limit_active, thresh); in btrfs_alloc_workqueue()
185 limit_active, thresh); in btrfs_alloc_workqueue()
202 if (wq->thresh == NO_THRESHOLD) in thresh_queue_hook()
218 if (wq->thresh == NO_THRESHOLD) in thresh_exec_hook()
228 wq->count %= (wq->thresh / 4); in thresh_exec_hook()
238 if (pending > wq->thresh) in thresh_exec_hook()
240 if (pending < wq->thresh / 2) in thresh_exec_hook()