MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bioq_remove

Function bioq_remove

freebsd/kern/subr_disk.c:164–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void
165bioq_remove(struct bio_queue_head *head, struct bio *bp)
166{
167
168 if (head->insert_point == NULL) {
169 if (bp == TAILQ_FIRST(&head->queue))
170 head->last_offset = bp->bio_offset + bp->bio_length;
171 } else if (bp == head->insert_point)
172 head->insert_point = NULL;
173
174 TAILQ_REMOVE(&head->queue, bp, bio_queue);
175 if (TAILQ_EMPTY(&head->queue))
176 head->batched = 0;
177 head->total--;
178}
179
180void
181bioq_flush(struct bio_queue_head *head, struct devstat *stp, int error)

Callers 1

bioq_takefirstFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected