Skip to content

Commit bc0e526

Browse files
John GarryJonathan Corbet
authored andcommitted
docs/completion.txt: Fix a couple of punctuation nits
This patch fixes a couple of punctuation nits which can make the document more correct and readable. Also missing "()" are added to some function references for consistency. Signed-off-by: John Garry <john.garry@huawei.com> Acked-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 9dc84ee commit bc0e526

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎Documentation/scheduler/completion.txt‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ A typical usage scenario is:
116116
This is not implying any temporal order on wait_for_completion() and the
117117
call to complete() - if the call to complete() happened before the call
118118
to wait_for_completion() then the waiting side simply will continue
119-
immediately as all dependencies are satisfied if not it will block until
119+
immediately as all dependencies are satisfied; if not, it will block until
120120
completion is signaled by complete().
121121

122122
Note that wait_for_completion() is calling spin_lock_irq()/spin_unlock_irq(),
@@ -131,7 +131,7 @@ wait_for_completion():
131131
The default behavior is to wait without a timeout and to mark the task as
132132
uninterruptible. wait_for_completion() and its variants are only safe
133133
in process context (as they can sleep) but not in atomic context,
134-
interrupt context, with disabled irqs. or preemption is disabled - see also
134+
interrupt context, with disabled irqs, or preemption is disabled - see also
135135
try_wait_for_completion() below for handling completion in atomic/interrupt
136136
context.
137137

@@ -224,7 +224,7 @@ queue spinlock. Any such concurrent calls to complete() or complete_all()
224224
probably are a design bug.
225225

226226
Signaling completion from hard-irq context is fine as it will appropriately
227-
lock with spin_lock_irqsave/spin_unlock_irqrestore and it will never sleep.
227+
lock with spin_lock_irqsave()/spin_unlock_irqrestore() and it will never sleep.
228228

229229

230230
try_wait_for_completion()/completion_done():

0 commit comments

Comments
 (0)