Lines Matching defs:queued
66 /* Total Number of queued bios on READ and WRITE lists */
255 * @queued: the service_queue->queued[] list @qn belongs to
257 * Add @bio to @qn and put @qn on @queued if it's not already on.
262 struct list_head *queued)
266 list_add_tail(&qn->node, queued);
273 * @queued: the qnode list to peek
275 static struct bio *throtl_peek_queued(struct list_head *queued)
280 if (list_empty(queued))
283 qn = list_first_entry(queued, struct throtl_qnode, node);
291 * @queued: the qnode list to pop a bio from
294 * Pop the first bio from the qnode list @queued. After popping, the first
295 * qnode is removed from @queued if empty or moved to the end of @queued so
303 static struct bio *throtl_pop_queued(struct list_head *queued,
309 if (list_empty(queued))
312 qn = list_first_entry(queued, struct throtl_qnode, node);
323 list_move_tail(&qn->node, queued);
332 INIT_LIST_HEAD(&sq->queued[READ]);
333 INIT_LIST_HEAD(&sq->queued[WRITE]);
911 * queued in the group bio list. So one should not be calling
913 * queued.
916 bio != throtl_peek_queued(&tg->service_queue.queued[rw]));
930 * If there is queued bio, that means there should be an active
995 * If @tg doesn't currently have any bios queued in the same
1003 throtl_qnode_add_bio(bio, qn, &sq->queued[rw]);
1015 bio = throtl_peek_queued(&sq->queued[READ]);
1019 bio = throtl_peek_queued(&sq->queued[WRITE]);
1059 bio = throtl_pop_queued(&sq->queued[rw], &tg_to_put);
1068 * bio_lists[] and decrease total number queued. The caller is
1077 &parent_sq->queued[rw]);
1098 while ((bio = throtl_peek_queued(&sq->queued[READ])) &&
1108 while ((bio = throtl_peek_queued(&sq->queued[WRITE])) &&
1161 * pending and queued on the service_queue's pending_tree and expires when
1245 * This function is queued for execution when bios reach the bio_lists[]
1264 while ((bio = throtl_pop_queued(&td_sq->queued[rw], NULL)))
1837 * is queued to determine if low limit is reached as we throttle
2203 /* throtl is FIFO - if bios are already queued, should queue */
2221 * We need to trim slice even when bios are not being queued
2222 * otherwise it might happen that a bio is not queued for
2226 * low rate and * newly queued IO gets a really long dispatch
2229 * So keep on trimming slice even if bio is not queued.
2248 throtl_log(sq, "[%c] bio. bdisp=%llu sz=%u bps=%llu iodisp=%u iops=%u queued=%d/%d",