| 216 | } |
| 217 | |
| 218 | struct bio * |
| 219 | bioq_takefirst(struct bio_queue_head *head) |
| 220 | { |
| 221 | struct bio *bp; |
| 222 | |
| 223 | bp = TAILQ_FIRST(&head->queue); |
| 224 | if (bp != NULL) |
| 225 | bioq_remove(head, bp); |
| 226 | return (bp); |
| 227 | } |
| 228 | |
| 229 | /* |
| 230 | * Compute the sorting key. The cast to unsigned is |
no test coverage detected