Lines Matching full:thresh
46 int thresh; member
70 * to support "thresh == NO_THRESHOLD" case, but it requires in btrfs_workqueue_normal_congested()
74 if (wq->normal->thresh == NO_THRESHOLD) in btrfs_workqueue_normal_congested()
77 return atomic_read(&wq->normal->pending) > wq->normal->thresh * 2; in btrfs_workqueue_normal_congested()
82 unsigned int flags, int limit_active, int thresh) in __btrfs_alloc_workqueue() argument
92 if (thresh == 0) in __btrfs_alloc_workqueue()
93 thresh = DFT_THRESHOLD; in __btrfs_alloc_workqueue()
95 if (thresh < DFT_THRESHOLD) { in __btrfs_alloc_workqueue()
97 ret->thresh = NO_THRESHOLD; in __btrfs_alloc_workqueue()
105 ret->thresh = thresh; in __btrfs_alloc_workqueue()
133 int thresh) in btrfs_alloc_workqueue() argument
142 limit_active, thresh); in btrfs_alloc_workqueue()
150 limit_active, thresh); in btrfs_alloc_workqueue()
167 if (wq->thresh == NO_THRESHOLD) in thresh_queue_hook()
183 if (wq->thresh == NO_THRESHOLD) in thresh_exec_hook()
193 wq->count %= (wq->thresh / 4); in thresh_exec_hook()
203 if (pending > wq->thresh) in thresh_exec_hook()
205 if (pending < wq->thresh / 2) in thresh_exec_hook()