/linux-4.1.27/fs/btrfs/ |
D | async-thread.c | 45 int max_active; member 90 __btrfs_alloc_workqueue(const char *name, unsigned int flags, int max_active, in __btrfs_alloc_workqueue() argument 98 ret->max_active = max_active; in __btrfs_alloc_workqueue() 104 ret->current_max = max_active; in __btrfs_alloc_workqueue() 113 ret->max_active, in __btrfs_alloc_workqueue() 117 ret->max_active, "btrfs", in __btrfs_alloc_workqueue() 136 int max_active, in btrfs_alloc_workqueue() argument 145 max_active, thresh); in btrfs_alloc_workqueue() 152 ret->high = __btrfs_alloc_workqueue(name, flags, max_active, in btrfs_alloc_workqueue() 210 new_max_active = clamp_val(new_max_active, 1, wq->max_active); in thresh_exec_hook() [all …]
|
D | async-thread.h | 70 int max_active,
|
D | disk-io.c | 2239 int max_active = fs_info->thread_pool_size; in btrfs_init_workqueues() local 2244 max_active, 16); in btrfs_init_workqueues() 2247 btrfs_alloc_workqueue("delalloc", flags, max_active, 2); in btrfs_init_workqueues() 2250 btrfs_alloc_workqueue("flush_delalloc", flags, max_active, 0); in btrfs_init_workqueues() 2253 btrfs_alloc_workqueue("cache", flags, max_active, 0); in btrfs_init_workqueues() 2263 max_active), 64); in btrfs_init_workqueues() 2273 btrfs_alloc_workqueue("endio", flags, max_active, 4); in btrfs_init_workqueues() 2275 btrfs_alloc_workqueue("endio-meta", flags, max_active, 4); in btrfs_init_workqueues() 2277 btrfs_alloc_workqueue("endio-meta-write", flags, max_active, 2); in btrfs_init_workqueues() 2279 btrfs_alloc_workqueue("endio-raid56", flags, max_active, 4); in btrfs_init_workqueues() [all …]
|
D | scrub.c | 3564 int max_active = fs_info->thread_pool_size; in scrub_workers_get() local 3574 max_active, 4); in scrub_workers_get() 3581 max_active, 2); in scrub_workers_get()
|
/linux-4.1.27/include/linux/ |
D | workqueue.h | 361 __alloc_workqueue_key(const char *fmt, unsigned int flags, int max_active, 381 #define alloc_workqueue(fmt, flags, max_active, args...) \ argument 388 __alloc_workqueue_key((fmt), (flags), (max_active), \ 392 #define alloc_workqueue(fmt, flags, max_active, args...) \ argument 393 __alloc_workqueue_key((fmt), (flags), (max_active), \ 451 int max_active);
|
/linux-4.1.27/sound/oss/dmasound/ |
D | dmasound_core.c | 484 sq->max_active = sq->numBufs ; in sq_setup() 518 sq->max_active = (sq->max_active <= sq->max_count) ? in sq_setup() 519 sq->max_active : sq->max_count ; in sq_setup() 525 sq->max_active = sq->numBufs ; in sq_setup() 624 while (write_sq.count >= write_sq.max_active) { in sq_write() 631 if (write_sq.count < write_sq.max_active) in sq_write() 685 if (write_sq.count < write_sq.max_active || write_sq.block_size - write_sq.rear_size > 0) in sq_poll() 982 sq->max_active = bufs ; in set_queue_frags() 1131 info.fragments = write_sq.max_active - write_sq.count; in sq_ioctl() 1132 info.fragstotal = write_sq.max_active; in sq_ioctl() [all …]
|
D | dmasound.h | 223 int max_active; /* in-use fragments <= max_count */ member
|
/linux-4.1.27/arch/ia64/sn/kernel/sn2/ |
D | sn2_smp.c | 174 int active, max_active, deadlock, flush_opt = sn2_flush_opt; in sn2_global_tlb_purge() local 247 max_active = max_active_pio(shub1); in sn2_global_tlb_purge() 285 if (active >= max_active || i == (nix - 1)) { in sn2_global_tlb_purge() 291 max_active = 1; in sn2_global_tlb_purge()
|
/linux-4.1.27/kernel/ |
D | workqueue.c | 207 int max_active; /* L: max active works */ member 1165 if (pwq->nr_active < pwq->max_active) in pwq_dec_nr_in_flight() 1428 if (likely(pwq->nr_active < pwq->max_active)) { in __queue_work() 3388 if (!freezable && pwq->max_active == wq->saved_max_active) in pwq_adjust_max_active() 3399 pwq->max_active = wq->saved_max_active; in pwq_adjust_max_active() 3402 pwq->nr_active < pwq->max_active) in pwq_adjust_max_active() 3411 pwq->max_active = 0; in pwq_adjust_max_active() 3834 static int wq_clamp_max_active(int max_active, unsigned int flags, in wq_clamp_max_active() argument 3839 if (max_active < 1 || max_active > lim) in wq_clamp_max_active() 3841 max_active, name, 1, lim); in wq_clamp_max_active() [all …]
|
/linux-4.1.27/Documentation/ |
D | workqueue.txt | 158 takes three arguments - @name, @flags and @max_active. @name is the 164 and @max_active control how work items are assigned execution 230 @max_active: 232 @max_active determines the maximum number of execution contexts per 234 with @max_active of 16, at most 16 work items of the wq can be 237 Currently, for a bound wq, the maximum limit for @max_active is 512 250 combination of @max_active of 1 and WQ_UNBOUND is used to achieve this 282 And with cmwq with @max_active >= 3, 296 If @max_active == 2, 335 * Unless there is a specific need, using 0 for @max_active is
|
/linux-4.1.27/drivers/infiniband/core/ |
D | mad_priv.h | 181 int max_active; member
|
D | mad.c | 1099 if (qp_info->send_queue.count < qp_info->send_queue.max_active) { in ib_send_mad() 2230 if (send_queue->count-- > send_queue->max_active) { in ib_mad_send_done_handler() 2690 post = (++recv_queue->count < recv_queue->max_active); in ib_mad_post_receive_mads() 2896 qp_info->send_queue.max_active = mad_sendq_size; in create_mad_qp() 2897 qp_info->recv_queue.max_active = mad_recvq_size; in create_mad_qp()
|
D | mad_rmpp.c | 399 return max(agent->qp_info->recv_queue.max_active >> 3, 1); in window_size()
|