Lines Matching defs:queued
38 /* Total Number of queued bios on READ and WRITE lists */
150 * Add @bio to @qn and put @qn on @sq->queued if it's not already on.
161 * directly queued into the iops path.
173 list_add_tail(&qn->node, &sq->queued[rw]);
180 * @queued: the qnode list to peek
186 static struct bio *throtl_peek_queued(struct list_head *queued)
191 if (list_empty(queued))
194 qn = list_first_entry(queued, struct throtl_qnode, node);
208 * Pop the first bio from the qnode list @sq->queued. Note that we firstly
210 * After popping, the first qnode is removed from @sq->queued if empty or moved
211 * to the end of @sq->queued so that the popping order is round-robin.
221 struct list_head *queued = &sq->queued[rw];
225 if (list_empty(queued))
228 qn = list_first_entry(queued, struct throtl_qnode, node);
246 list_move_tail(&qn->node, queued);
255 INIT_LIST_HEAD(&sq->queued[READ]);
256 INIT_LIST_HEAD(&sq->queued[WRITE]);
840 * slice is started only for empty throttle group. If there is queued bio, that
898 * queued in the group bio list. So one should not be calling
900 * queued.
903 bio != throtl_peek_queued(&tg->service_queue.queued[rw]));
937 * If @tg doesn't currently have any bios queued in the same
953 bio == throtl_peek_queued(&sq->queued[rw]))
965 bio = throtl_peek_queued(&sq->queued[READ]);
969 bio = throtl_peek_queued(&sq->queued[WRITE]);
1018 * bio_lists[] and decrease total number queued. The caller is
1048 while ((bio = throtl_peek_queued(&sq->queued[READ])) &&
1058 while ((bio = throtl_peek_queued(&sq->queued[WRITE])) &&
1109 * pending and queued on the service_queue's pending_tree and expires when
1194 * This function is queued for execution when bios reach the bio_lists[]
1692 list_for_each_entry_safe(qn, tmp, &sq->queued[rw], node) {
1768 * Throtl is FIFO - if bios are already queued, should queue.
1805 * queued otherwise it might happen that a bio is not
1806 * queued for a long time and slice keeps on extending
1809 * dispatched so far at new low rate and * newly queued
1812 * So keep on trimming slice even if bio is not queued.
1846 throtl_log(sq, "[%c] bio. bdisp=%llu sz=%u bps=%llu iodisp=%u iops=%u queued=%d/%d",