* [PATCH] Doc fix for dget_dlock @ 2022-08-05 16:39 Anup K Parikh 2022-08-09 15:29 ` Shuah Khan 2022-08-09 18:28 ` Randy Dunlap 0 siblings, 2 replies; 5+ messages in thread From: Anup K Parikh @ 2022-08-05 16:39 UTC (permalink / raw) To: skhan; +Cc: linux-kernel Removes the warning for dget_dlock in include/linux/dcache.h and enables generation of its API documentation Signed-off-by: Anup K Parikh <parikhanupk.foss@gmail.com> --- include/linux/dcache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/dcache.h b/include/linux/dcache.h index f5bba5148..ce0b36f72 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -297,7 +297,7 @@ extern char *dentry_path(const struct dentry *, char *, int); /* Allocation counts.. */ /** - * dget, dget_dlock - get a reference to a dentry + * dget_dlock - get a reference to a dentry * @dentry: dentry to get a reference to * * Given a dentry or %NULL pointer increment the reference count -- 2.35.1 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] Doc fix for dget_dlock 2022-08-05 16:39 [PATCH] Doc fix for dget_dlock Anup K Parikh @ 2022-08-09 15:29 ` Shuah Khan 2022-08-09 18:28 ` Randy Dunlap 1 sibling, 0 replies; 5+ messages in thread From: Shuah Khan @ 2022-08-09 15:29 UTC (permalink / raw) To: Anup K Parikh; +Cc: linux-kernel, Shuah Khan On 8/5/22 10:39 AM, Anup K Parikh wrote: > Removes the warning for dget_dlock in include/linux/dcache.h and > enables generation of its API documentation > > Signed-off-by: Anup K Parikh <parikhanupk.foss@gmail.com> > --- > include/linux/dcache.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/dcache.h b/include/linux/dcache.h > index f5bba5148..ce0b36f72 100644 > --- a/include/linux/dcache.h > +++ b/include/linux/dcache.h > @@ -297,7 +297,7 @@ extern char *dentry_path(const struct dentry *, char *, int); > /* Allocation counts.. */ > > /** > - * dget, dget_dlock - get a reference to a dentry > + * dget_dlock - get a reference to a dentry > * @dentry: dentry to get a reference to > * > * Given a dentry or %NULL pointer increment the reference count > Please include all the maintainers - run get_maintainers.pl for a complete list. thanks, -- Shuah ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Doc fix for dget_dlock 2022-08-05 16:39 [PATCH] Doc fix for dget_dlock Anup K Parikh 2022-08-09 15:29 ` Shuah Khan @ 2022-08-09 18:28 ` Randy Dunlap [not found] ` <CAH6MFJGuHptQ8peBb8myLR8fgtLtAXwvUePcs7dbzYszF9Yyyw@mail.gmail.com> 1 sibling, 1 reply; 5+ messages in thread From: Randy Dunlap @ 2022-08-09 18:28 UTC (permalink / raw) To: Anup K Parikh, skhan; +Cc: linux-kernel Hi-- On 8/5/22 09:39, Anup K Parikh wrote: > Removes the warning for dget_dlock in include/linux/dcache.h and > enables generation of its API documentation > > Signed-off-by: Anup K Parikh <parikhanupk.foss@gmail.com> > --- > include/linux/dcache.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/dcache.h b/include/linux/dcache.h > index f5bba5148..ce0b36f72 100644 > --- a/include/linux/dcache.h > +++ b/include/linux/dcache.h > @@ -297,7 +297,7 @@ extern char *dentry_path(const struct dentry *, char *, int); > /* Allocation counts.. */ > > /** > - * dget, dget_dlock - get a reference to a dentry > + * dget_dlock - get a reference to a dentry > * @dentry: dentry to get a reference to > * > * Given a dentry or %NULL pointer increment the reference count Someone was trying to document both dget() and get_dlock() with the same kernel-doc comment block. I suppose that you could duplicate the comments for dget() also. It would be nice to know the difference(s) in the functions as well. thanks. -- ~Randy ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <CAH6MFJGuHptQ8peBb8myLR8fgtLtAXwvUePcs7dbzYszF9Yyyw@mail.gmail.com>]
* Re: [PATCH] Doc fix for dget_dlock [not found] ` <CAH6MFJGuHptQ8peBb8myLR8fgtLtAXwvUePcs7dbzYszF9Yyyw@mail.gmail.com> @ 2022-08-11 18:33 ` Randy Dunlap 2022-08-11 18:35 ` Randy Dunlap 0 siblings, 1 reply; 5+ messages in thread From: Randy Dunlap @ 2022-08-11 18:33 UTC (permalink / raw) To: Anup Parikh; +Cc: skhan, linux-kernel Hi-- On 8/11/22 07:48, Anup Parikh wrote: > Hello Mr. Randy Dunlap, > > I checked include/linux/dcache.h (dget() and dget_dlock()), include/linux/lockref.h and linux/lib/lockref.c. > My current knowledge is limited but I think: > 1) dget_dlock() directly increments the count variable without any atomicity guards. > 2) dget() does the same but with atomicity guarantee - even across multiple-cores on a multi-core system (according to https://stackoverflow.com/questions/36964478/understanding-synchronization-with-multiple-processors <https://stackoverflow.com/questions/36964478/understanding-synchronization-with-multiple-processors> and code in linux/lib/lockref.c). > > Please let me know if I should write the corresponding documentation and send a new patch. Yes, please. Thanks. > Thanks and Regards, > Anup K Parikh. > > > On Tue, Aug 9, 2022 at 11:58 PM Randy Dunlap <rdunlap@infradead.org <mailto:rdunlap@infradead.org>> wrote: > > Hi-- > > On 8/5/22 09:39, Anup K Parikh wrote: > > Removes the warning for dget_dlock in include/linux/dcache.h and > > enables generation of its API documentation > > > > Signed-off-by: Anup K Parikh <parikhanupk.foss@gmail.com <mailto:parikhanupk.foss@gmail.com>> > > --- > > include/linux/dcache.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/include/linux/dcache.h b/include/linux/dcache.h > > index f5bba5148..ce0b36f72 100644 > > --- a/include/linux/dcache.h > > +++ b/include/linux/dcache.h > > @@ -297,7 +297,7 @@ extern char *dentry_path(const struct dentry *, char *, int); > > /* Allocation counts.. */ > > > > /** > > - * dget, dget_dlock - get a reference to a dentry > > + * dget_dlock - get a reference to a dentry > > * @dentry: dentry to get a reference to > > * > > * Given a dentry or %NULL pointer increment the reference count > > Someone was trying to document both dget() and get_dlock() with the same > kernel-doc comment block. > I suppose that you could duplicate the comments for dget() also. > > It would be nice to know the difference(s) in the functions as well. > > thanks. > -- > ~Randy > -- ~Randy ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Doc fix for dget_dlock 2022-08-11 18:33 ` Randy Dunlap @ 2022-08-11 18:35 ` Randy Dunlap 0 siblings, 0 replies; 5+ messages in thread From: Randy Dunlap @ 2022-08-11 18:35 UTC (permalink / raw) To: Anup Parikh; +Cc: skhan, linux-kernel On 8/11/22 11:33, Randy Dunlap wrote: > Hi-- > > On 8/11/22 07:48, Anup Parikh wrote: >> Hello Mr. Randy Dunlap, >> >> I checked include/linux/dcache.h (dget() and dget_dlock()), include/linux/lockref.h and linux/lib/lockref.c. >> My current knowledge is limited but I think: >> 1) dget_dlock() directly increments the count variable without any atomicity guards. >> 2) dget() does the same but with atomicity guarantee - even across multiple-cores on a multi-core system (according to https://stackoverflow.com/questions/36964478/understanding-synchronization-with-multiple-processors <https://stackoverflow.com/questions/36964478/understanding-synchronization-with-multiple-processors> and code in linux/lib/lockref.c). >> >> Please let me know if I should write the corresponding documentation and send a new patch. > > Yes, please. > Thanks. also send the patch to linux-fsdevel@vger.kernel.org since it touches filesystem code. > >> Thanks and Regards, >> Anup K Parikh. >> >> >> On Tue, Aug 9, 2022 at 11:58 PM Randy Dunlap <rdunlap@infradead.org <mailto:rdunlap@infradead.org>> wrote: >> >> Hi-- >> >> On 8/5/22 09:39, Anup K Parikh wrote: >> > Removes the warning for dget_dlock in include/linux/dcache.h and >> > enables generation of its API documentation >> > >> > Signed-off-by: Anup K Parikh <parikhanupk.foss@gmail.com <mailto:parikhanupk.foss@gmail.com>> >> > --- >> > include/linux/dcache.h | 2 +- >> > 1 file changed, 1 insertion(+), 1 deletion(-) >> > >> > diff --git a/include/linux/dcache.h b/include/linux/dcache.h >> > index f5bba5148..ce0b36f72 100644 >> > --- a/include/linux/dcache.h >> > +++ b/include/linux/dcache.h >> > @@ -297,7 +297,7 @@ extern char *dentry_path(const struct dentry *, char *, int); >> > /* Allocation counts.. */ >> > >> > /** >> > - * dget, dget_dlock - get a reference to a dentry >> > + * dget_dlock - get a reference to a dentry >> > * @dentry: dentry to get a reference to >> > * >> > * Given a dentry or %NULL pointer increment the reference count >> >> Someone was trying to document both dget() and get_dlock() with the same >> kernel-doc comment block. >> I suppose that you could duplicate the comments for dget() also. >> >> It would be nice to know the difference(s) in the functions as well. >> >> thanks. >> -- >> ~Randy >> > -- ~Randy ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-08-11 18:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-05 16:39 [PATCH] Doc fix for dget_dlock Anup K Parikh
2022-08-09 15:29 ` Shuah Khan
2022-08-09 18:28 ` Randy Dunlap
[not found] ` <CAH6MFJGuHptQ8peBb8myLR8fgtLtAXwvUePcs7dbzYszF9Yyyw@mail.gmail.com>
2022-08-11 18:33 ` Randy Dunlap
2022-08-11 18:35 ` Randy Dunlap
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox