Skip to content

Commit

Permalink
spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrens committed Nov 2, 2022
1 parent 31c027b commit 7133615
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions module/zfs/bqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ obj2node(bqueue_t *q, void *data)
* is empty, threads block. They will be signalled when the queue has
* 1/fill_fraction full, or when bqueue_flush is called. As a result, you
* must call bqueue_enqueue_flush() when you enqueue your final record on a
* thread, in case the dequeueing threads are currently blocked and that
* thread, in case the dequeuing threads are currently blocked and that
* enqueue does not cause them to be awoken. Alternatively, this behavior can
* be disabled (causing signaling to happen immediately) by setting
* fill_fraction to any value larger than size. Return 0 on success, or -1
Expand Down Expand Up @@ -134,8 +134,8 @@ bqueue_enqueue(bqueue_t *q, void *data, size_t item_size)
* Enqueue an entry, and then flush the queue. This forces the popping threads
* to wake up, even if we're below the fill fraction. We have this in a single
* function, rather than having a separate call, because it prevents race
* conditions between the enqueuing thread and the dequeueing thread, where the
* enqueueing thread will wake up the dequeueing thread, that thread will
* conditions between the enqueuing thread and the dequeuing thread, where the
* enqueueing thread will wake up the dequeuing thread, that thread will
* destroy the condvar before the enqueuing thread is done.
*/
void
Expand All @@ -154,9 +154,9 @@ bqueue_dequeue(bqueue_t *q)
void *ret = list_remove_head(&q->bq_deqing_list);
if (ret == NULL) {
/*
* Dequing list is empty. Wait for there to be something on
* Dequeuing list is empty. Wait for there to be something on
* the shared list, then move the entire shared list to the
* dequing list.
* dequeuing list.
*/
mutex_enter(&q->bq_lock);
while (q->bq_size == 0) {
Expand Down

0 comments on commit 7133615

Please sign in to comment.