Lines Matching refs:wake_batch
327 unsigned int wake_batch; in sbq_calc_wake_batch() local
349 wake_batch = clamp_t(unsigned int, depth / SBQ_WAIT_QUEUES, 1, in sbq_calc_wake_batch()
352 return wake_batch; in sbq_calc_wake_batch()
377 sbq->wake_batch = sbq_calc_wake_batch(sbq, depth); in sbitmap_queue_init_node()
390 atomic_set(&sbq->ws[i].wait_cnt, sbq->wake_batch); in sbitmap_queue_init_node()
401 unsigned int wake_batch = sbq_calc_wake_batch(sbq, depth); in sbitmap_queue_update_wake_batch() local
404 if (sbq->wake_batch != wake_batch) { in sbitmap_queue_update_wake_batch()
405 WRITE_ONCE(sbq->wake_batch, wake_batch); in sbitmap_queue_update_wake_batch()
517 unsigned int wake_batch; in __sbq_wake_up() local
528 wake_batch = READ_ONCE(sbq->wake_batch); in __sbq_wake_up()
542 ret = atomic_cmpxchg(&ws->wait_cnt, wait_cnt, wake_batch); in __sbq_wake_up()
545 wake_up_nr(&ws->wait, wake_batch); in __sbq_wake_up()
630 seq_printf(m, "wake_batch=%u\n", sbq->wake_batch); in sbitmap_queue_show()