linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] docs/completion.txt: Fix a couple of punctuation nits
@ 2018-10-10 14:56 John Garry
  2018-10-10 15:47 ` Randy Dunlap
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: John Garry @ 2018-10-10 14:56 UTC (permalink / raw)
  To: corbet; +Cc: linux-doc, linux-kernel, peterz, mingo, John Garry

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>

diff --git a/Documentation/scheduler/completion.txt b/Documentation/scheduler/completion.txt
index 656cf80..108bd0f 100644
--- a/Documentation/scheduler/completion.txt
+++ b/Documentation/scheduler/completion.txt
@@ -116,7 +116,7 @@ A typical usage scenario is:
 This is not implying any temporal order on wait_for_completion() and the
 call to complete() - if the call to complete() happened before the call
 to wait_for_completion() then the waiting side simply will continue
-immediately as all dependencies are satisfied if not it will block until
+immediately as all dependencies are satisfied; if not, it will block until
 completion is signaled by complete().
 
 Note that wait_for_completion() is calling spin_lock_irq()/spin_unlock_irq(),
@@ -131,7 +131,7 @@ wait_for_completion():
 The default behavior is to wait without a timeout and to mark the task as
 uninterruptible. wait_for_completion() and its variants are only safe
 in process context (as they can sleep) but not in atomic context,
-interrupt context, with disabled irqs. or preemption is disabled - see also
+interrupt context, with disabled irqs, or preemption is disabled - see also
 try_wait_for_completion() below for handling completion in atomic/interrupt
 context.
 
@@ -224,7 +224,7 @@ queue spinlock. Any such concurrent calls to complete() or complete_all()
 probably are a design bug.
 
 Signaling completion from hard-irq context is fine as it will appropriately
-lock with spin_lock_irqsave/spin_unlock_irqrestore and it will never sleep.
+lock with spin_lock_irqsave()/spin_unlock_irqrestore() and it will never sleep.
 
 
 try_wait_for_completion()/completion_done():
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] docs/completion.txt: Fix a couple of punctuation nits
  2018-10-10 14:56 [PATCH] docs/completion.txt: Fix a couple of punctuation nits John Garry
@ 2018-10-10 15:47 ` Randy Dunlap
  2018-10-11 15:29 ` Matthew Wilcox
  2018-10-12 17:27 ` Jonathan Corbet
  2 siblings, 0 replies; 7+ messages in thread
From: Randy Dunlap @ 2018-10-10 15:47 UTC (permalink / raw)
  To: John Garry, corbet; +Cc: linux-doc, linux-kernel, peterz, mingo

On 10/10/18 7:56 AM, John Garry wrote:
> 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>

thanks,
-- 
~Randy

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] docs/completion.txt: Fix a couple of punctuation nits
  2018-10-10 14:56 [PATCH] docs/completion.txt: Fix a couple of punctuation nits John Garry
  2018-10-10 15:47 ` Randy Dunlap
@ 2018-10-11 15:29 ` Matthew Wilcox
  2018-10-11 15:41   ` Peter Zijlstra
  2018-10-12 17:27 ` Jonathan Corbet
  2 siblings, 1 reply; 7+ messages in thread
From: Matthew Wilcox @ 2018-10-11 15:29 UTC (permalink / raw)
  To: John Garry; +Cc: corbet, linux-doc, linux-kernel, peterz, mingo

On Wed, Oct 10, 2018 at 10:56:32PM +0800, John Garry wrote:
> 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.

While there's nothing wrong here, any chance you want to try converting
it to .rst and adding it to the overall index?  It looks a lot like
rst already.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] docs/completion.txt: Fix a couple of punctuation nits
  2018-10-11 15:29 ` Matthew Wilcox
@ 2018-10-11 15:41   ` Peter Zijlstra
  2018-10-11 18:46     ` Jani Nikula
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Zijlstra @ 2018-10-11 15:41 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: John Garry, corbet, linux-doc, linux-kernel, mingo

On Thu, Oct 11, 2018 at 08:29:10AM -0700, Matthew Wilcox wrote:
> On Wed, Oct 10, 2018 at 10:56:32PM +0800, John Garry wrote:
> > 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.
> 
> While there's nothing wrong here, any chance you want to try converting
> it to .rst and adding it to the overall index?  It looks a lot like
> rst already.

I, on principle, will not touch rst files. They are inferior to txt files.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] docs/completion.txt: Fix a couple of punctuation nits
  2018-10-11 15:41   ` Peter Zijlstra
@ 2018-10-11 18:46     ` Jani Nikula
  2018-10-12  9:32       ` Peter Zijlstra
  0 siblings, 1 reply; 7+ messages in thread
From: Jani Nikula @ 2018-10-11 18:46 UTC (permalink / raw)
  To: Peter Zijlstra, Matthew Wilcox
  Cc: John Garry, corbet, linux-doc, linux-kernel, mingo

On Thu, 11 Oct 2018, Peter Zijlstra <peterz@infradead.org> wrote:
> On Thu, Oct 11, 2018 at 08:29:10AM -0700, Matthew Wilcox wrote:
>> On Wed, Oct 10, 2018 at 10:56:32PM +0800, John Garry wrote:
>> > 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.
>> 
>> While there's nothing wrong here, any chance you want to try converting
>> it to .rst and adding it to the overall index?  It looks a lot like
>> rst already.
>
> I, on principle, will not touch rst files. They are inferior to txt files.

$ git shortlog --author=Zijlstra  -- Documentation/scheduler/

It does not look like you touch txt files either.


BR,
Jani.

-- 
Jani Nikula, Intel Open Source Graphics Center

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] docs/completion.txt: Fix a couple of punctuation nits
  2018-10-11 18:46     ` Jani Nikula
@ 2018-10-12  9:32       ` Peter Zijlstra
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Zijlstra @ 2018-10-12  9:32 UTC (permalink / raw)
  To: Jani Nikula
  Cc: Matthew Wilcox, John Garry, corbet, linux-doc, linux-kernel,
	mingo

On Thu, Oct 11, 2018 at 09:46:56PM +0300, Jani Nikula wrote:
> On Thu, 11 Oct 2018, Peter Zijlstra <peterz@infradead.org> wrote:
> > On Thu, Oct 11, 2018 at 08:29:10AM -0700, Matthew Wilcox wrote:
> >> On Wed, Oct 10, 2018 at 10:56:32PM +0800, John Garry wrote:
> >> > 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.
> >> 
> >> While there's nothing wrong here, any chance you want to try converting
> >> it to .rst and adding it to the overall index?  It looks a lot like
> >> rst already.
> >
> > I, on principle, will not touch rst files. They are inferior to txt files.
> 
> $ git shortlog --author=Zijlstra  -- Documentation/scheduler/
> 
> It does not look like you touch txt files either.

True; I prefer comments in the code. I did however write some text on
atomics the other day, see Documentation/atomic_{t,bitops}.txt.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] docs/completion.txt: Fix a couple of punctuation nits
  2018-10-10 14:56 [PATCH] docs/completion.txt: Fix a couple of punctuation nits John Garry
  2018-10-10 15:47 ` Randy Dunlap
  2018-10-11 15:29 ` Matthew Wilcox
@ 2018-10-12 17:27 ` Jonathan Corbet
  2 siblings, 0 replies; 7+ messages in thread
From: Jonathan Corbet @ 2018-10-12 17:27 UTC (permalink / raw)
  To: John Garry; +Cc: linux-doc, linux-kernel, peterz, mingo

On Wed, 10 Oct 2018 22:56:32 +0800
John Garry <john.garry@huawei.com> wrote:

> 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>

Applied, thanks.

I agree with the suggestion to move it to RST - happily, it's already a
valid RST file, and would really only requires a few small tweaks.  Of
course, perhaps the existing RST-compatible markup already renders it
"inferior" :)

jon

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-10-12 17:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-10 14:56 [PATCH] docs/completion.txt: Fix a couple of punctuation nits John Garry
2018-10-10 15:47 ` Randy Dunlap
2018-10-11 15:29 ` Matthew Wilcox
2018-10-11 15:41   ` Peter Zijlstra
2018-10-11 18:46     ` Jani Nikula
2018-10-12  9:32       ` Peter Zijlstra
2018-10-12 17:27 ` Jonathan Corbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).