* linux-next: manual merge of the slab tree with the mm-unstable tree
@ 2025-07-21 4:20 Stephen Rothwell
2025-07-21 19:38 ` Matthew Wilcox
0 siblings, 1 reply; 15+ messages in thread
From: Stephen Rothwell @ 2025-07-21 4:20 UTC (permalink / raw)
To: Vlastimil Babka, Andrew Morton
Cc: Linux Kernel Mailing List, Linux Next Mailing List,
Luiz Capitulino, Matthew Wilcox (Oracle)
[-- Attachment #1: Type: text/plain, Size: 729 bytes --]
Hi all,
Today's linux-next merge of the slab tree got a conflict in:
fs/proc/page.c
between commit:
a602ee331e31 ("fs: stable_page_flags(): use snapshot_page()")
from the mm-unstable tree and commit:
d8178294c53e ("proc: Remove mention of PG_slab")
from the slab tree.
I fixed it up (I just used the former version) and can carry the fix as
necessary. This is now fixed as far as linux-next is concerned, but any
non trivial conflicts should be mentioned to your upstream maintainer
when your tree is submitted for merging. You may also want to consider
cooperating with the maintainer of the conflicting tree to minimise any
particularly complex conflicts.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: linux-next: manual merge of the slab tree with the mm-unstable tree
2025-07-21 4:20 Stephen Rothwell
@ 2025-07-21 19:38 ` Matthew Wilcox
2025-07-21 21:35 ` Luiz Capitulino
0 siblings, 1 reply; 15+ messages in thread
From: Matthew Wilcox @ 2025-07-21 19:38 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Vlastimil Babka, Andrew Morton, Linux Kernel Mailing List,
Linux Next Mailing List, Luiz Capitulino
On Mon, Jul 21, 2025 at 02:20:01PM +1000, Stephen Rothwell wrote:
> Hi all,
>
> Today's linux-next merge of the slab tree got a conflict in:
>
> fs/proc/page.c
>
> between commit:
>
> a602ee331e31 ("fs: stable_page_flags(): use snapshot_page()")
>
> from the mm-unstable tree and commit:
>
> d8178294c53e ("proc: Remove mention of PG_slab")
>
> from the slab tree.
>
> I fixed it up (I just used the former version) and can carry the fix as
> necessary. This is now fixed as far as linux-next is concerned, but any
I think the snapshot_page commit was incorrect in removing this comment.
It is still valuable information. I think the comment from d8178294c53e
should remain in the tree after the resolution.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: linux-next: manual merge of the slab tree with the mm-unstable tree
2025-07-21 19:38 ` Matthew Wilcox
@ 2025-07-21 21:35 ` Luiz Capitulino
2025-07-22 8:30 ` Vlastimil Babka
0 siblings, 1 reply; 15+ messages in thread
From: Luiz Capitulino @ 2025-07-21 21:35 UTC (permalink / raw)
To: Matthew Wilcox, Stephen Rothwell
Cc: Vlastimil Babka, Andrew Morton, Linux Kernel Mailing List,
Linux Next Mailing List, David Hildenbrand
On 2025-07-21 15:38, Matthew Wilcox wrote:
> On Mon, Jul 21, 2025 at 02:20:01PM +1000, Stephen Rothwell wrote:
>> Hi all,
>>
>> Today's linux-next merge of the slab tree got a conflict in:
>>
>> fs/proc/page.c
>>
>> between commit:
>>
>> a602ee331e31 ("fs: stable_page_flags(): use snapshot_page()")
>>
>> from the mm-unstable tree and commit:
>>
>> d8178294c53e ("proc: Remove mention of PG_slab")
>>
>> from the slab tree.
>>
>> I fixed it up (I just used the former version) and can carry the fix as
>> necessary. This is now fixed as far as linux-next is concerned, but any
>
> I think the snapshot_page commit was incorrect in removing this comment.
> It is still valuable information. I think the comment from d8178294c53e
> should remain in the tree after the resolution.
The comment wasn't just dropped, David suggested a new version for the comment
(which is similar to yours). The new comment is now part of set_ps_flags()
which is where we set this flag in the snapshot_page() implementation:
static void set_ps_flags(struct page_snapshot *ps, const struct folio *folio,
const struct page *page)
{
/*
* Only the first page of a high-order buddy page has PageBuddy() set.
* So we have to check manually whether this page is part of a high-
* order buddy page.
*/
if (PageBuddy(page))
ps->flags |= PAGE_SNAPSHOT_PG_BUDDY;
else if (page_count(page) == 0 && is_free_buddy_page(page))
ps->flags |= PAGE_SNAPSHOT_PG_BUDDY;
if (folio_test_idle(folio))
ps->flags |= PAGE_SNAPSHOT_PG_IDLE;
}
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: linux-next: manual merge of the slab tree with the mm-unstable tree
2025-07-21 21:35 ` Luiz Capitulino
@ 2025-07-22 8:30 ` Vlastimil Babka
0 siblings, 0 replies; 15+ messages in thread
From: Vlastimil Babka @ 2025-07-22 8:30 UTC (permalink / raw)
To: Luiz Capitulino, Matthew Wilcox, Stephen Rothwell
Cc: Andrew Morton, Linux Kernel Mailing List, Linux Next Mailing List,
David Hildenbrand
On 7/21/25 23:35, Luiz Capitulino wrote:
> On 2025-07-21 15:38, Matthew Wilcox wrote:
>> On Mon, Jul 21, 2025 at 02:20:01PM +1000, Stephen Rothwell wrote:
>>> Hi all,
>>>
>>> Today's linux-next merge of the slab tree got a conflict in:
>>>
>>> fs/proc/page.c
>>>
>>> between commit:
>>>
>>> a602ee331e31 ("fs: stable_page_flags(): use snapshot_page()")
>>>
>>> from the mm-unstable tree and commit:
>>>
>>> d8178294c53e ("proc: Remove mention of PG_slab")
>>>
>>> from the slab tree.
>>>
>>> I fixed it up (I just used the former version) and can carry the fix as
>>> necessary. This is now fixed as far as linux-next is concerned, but any
>>
>> I think the snapshot_page commit was incorrect in removing this comment.
>> It is still valuable information. I think the comment from d8178294c53e
>> should remain in the tree after the resolution.
>
> The comment wasn't just dropped, David suggested a new version for the comment
> (which is similar to yours). The new comment is now part of set_ps_flags()
> which is where we set this flag in the snapshot_page() implementation:
>
> static void set_ps_flags(struct page_snapshot *ps, const struct folio *folio,
> const struct page *page)
> {
> /*
> * Only the first page of a high-order buddy page has PageBuddy() set.
> * So we have to check manually whether this page is part of a high-
> * order buddy page.
> */
> if (PageBuddy(page))
> ps->flags |= PAGE_SNAPSHOT_PG_BUDDY;
That seems to work. I can therefore simply drop d8178294c53e from the slab tree.
> else if (page_count(page) == 0 && is_free_buddy_page(page))
> ps->flags |= PAGE_SNAPSHOT_PG_BUDDY;
>
> if (folio_test_idle(folio))
> ps->flags |= PAGE_SNAPSHOT_PG_IDLE;
> }
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* linux-next: manual merge of the slab tree with the mm-unstable tree
@ 2025-09-04 6:20 Stephen Rothwell
0 siblings, 0 replies; 15+ messages in thread
From: Stephen Rothwell @ 2025-09-04 6:20 UTC (permalink / raw)
To: Vlastimil Babka, Andrew Morton
Cc: Liam R. Howlett, Linux Kernel Mailing List,
Linux Next Mailing List, Qianfeng Rong
[-- Attachment #1: Type: text/plain, Size: 742 bytes --]
Hi all,
Today's linux-next merge of the slab tree got a conflict in:
lib/maple_tree.c
between commit:
65d011b2bc05 ("maple_tree: remove redundant __GFP_NOWARN")
from the mm-unstable tree and commit:
1094ea77b180 ("maple_tree: Prefilled sheaf conversion and testing")
from the slab tree.
I fixed it up (I used the latter version) and can carry the fix as
necessary. This is now fixed as far as linux-next is concerned, but any
non trivial conflicts should be mentioned to your upstream maintainer
when your tree is submitted for merging. You may also want to consider
cooperating with the maintainer of the conflicting tree to minimise any
particularly complex conflicts.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* linux-next: manual merge of the slab tree with the mm-unstable tree
@ 2025-09-04 6:29 Stephen Rothwell
2025-09-04 8:39 ` Vlastimil Babka
0 siblings, 1 reply; 15+ messages in thread
From: Stephen Rothwell @ 2025-09-04 6:29 UTC (permalink / raw)
To: Vlastimil Babka, Andrew Morton
Cc: Liam R. Howlett, Linux Kernel Mailing List,
Linux Next Mailing List, Lorenzo Stoakes
[-- Attachment #1: Type: text/plain, Size: 934 bytes --]
Hi all,
FIXME: Add owner of second tree to To:
Add author(s)/SOB of conflicting commits.
Today's linux-next merge of the slab tree got a conflict in:
tools/testing/vma/vma_internal.h
between commit:
da018ebb7157 ("tools/testing/vma: clean up stubs in vma_internal.h")
from the mm-unstable tree and commits:
cbb6a30df135 ("tools/testing/vma: Implement vm_refcnt reset")
6602bcbdfbad ("tools/testing: Add support for changes to slab for sheaves")
from the slab tree.
I fixed it up (I used the latter version) and can carry the fix as
necessary. This is now fixed as far as linux-next is concerned, but any
non trivial conflicts should be mentioned to your upstream maintainer
when your tree is submitted for merging. You may also want to consider
cooperating with the maintainer of the conflicting tree to minimise any
particularly complex conflicts.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: linux-next: manual merge of the slab tree with the mm-unstable tree
2025-09-04 6:29 Stephen Rothwell
@ 2025-09-04 8:39 ` Vlastimil Babka
2025-09-04 21:39 ` Andrew Morton
0 siblings, 1 reply; 15+ messages in thread
From: Vlastimil Babka @ 2025-09-04 8:39 UTC (permalink / raw)
To: Stephen Rothwell, Andrew Morton
Cc: Liam R. Howlett, Linux Kernel Mailing List,
Linux Next Mailing List, Lorenzo Stoakes, Qianfeng Rong
On 9/4/25 08:29, Stephen Rothwell wrote:
> Hi all,
>
> FIXME: Add owner of second tree to To:
> Add author(s)/SOB of conflicting commits.
>
> Today's linux-next merge of the slab tree got a conflict in:
>
> tools/testing/vma/vma_internal.h
>
> between commit:
>
> da018ebb7157 ("tools/testing/vma: clean up stubs in vma_internal.h")
We can solve it by me taking this and
65d011b2bc05 ("maple_tree: remove redundant __GFP_NOWARN")
from the other thread and Andrew dropping them in mm-unstable. I tried to
rebase mm-unstable locally while dropping those and there were no conflicts
and they are self-contained cleanups. AFAIR Andrew was fine with such
resolutions in the past.
Thanks.
> from the mm-unstable tree and commits:
>
> cbb6a30df135 ("tools/testing/vma: Implement vm_refcnt reset")
> 6602bcbdfbad ("tools/testing: Add support for changes to slab for sheaves")
>
> from the slab tree.
>
> I fixed it up (I used the latter version) and can carry the fix as
> necessary. This is now fixed as far as linux-next is concerned, but any
> non trivial conflicts should be mentioned to your upstream maintainer
> when your tree is submitted for merging. You may also want to consider
> cooperating with the maintainer of the conflicting tree to minimise any
> particularly complex conflicts.
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: linux-next: manual merge of the slab tree with the mm-unstable tree
2025-09-04 8:39 ` Vlastimil Babka
@ 2025-09-04 21:39 ` Andrew Morton
0 siblings, 0 replies; 15+ messages in thread
From: Andrew Morton @ 2025-09-04 21:39 UTC (permalink / raw)
To: Vlastimil Babka
Cc: Stephen Rothwell, Liam R. Howlett, Linux Kernel Mailing List,
Linux Next Mailing List, Lorenzo Stoakes, Qianfeng Rong
On Thu, 4 Sep 2025 10:39:47 +0200 Vlastimil Babka <vbabka@suse.cz> wrote:
> On 9/4/25 08:29, Stephen Rothwell wrote:
> > Hi all,
> >
> > FIXME: Add owner of second tree to To:
> > Add author(s)/SOB of conflicting commits.
> >
> > Today's linux-next merge of the slab tree got a conflict in:
> >
> > tools/testing/vma/vma_internal.h
> >
> > between commit:
> >
> > da018ebb7157 ("tools/testing/vma: clean up stubs in vma_internal.h")
>
> We can solve it by me taking this and
>
> 65d011b2bc05 ("maple_tree: remove redundant __GFP_NOWARN")
>
> from the other thread and Andrew dropping them in mm-unstable. I tried to
> rebase mm-unstable locally while dropping those and there were no conflicts
> and they are self-contained cleanups. AFAIR Andrew was fine with such
> resolutions in the past.
Yep, I generally just drop things when these conflicts occur.
^ permalink raw reply [flat|nested] 15+ messages in thread
* linux-next: manual merge of the slab tree with the mm-unstable tree
@ 2025-11-14 4:13 Stephen Rothwell
2025-11-14 5:06 ` Christoph Hellwig
0 siblings, 1 reply; 15+ messages in thread
From: Stephen Rothwell @ 2025-11-14 4:13 UTC (permalink / raw)
To: Vlastimil Babka, Cc: Andrew Morton
Cc: Christoph Hellwig, Linux Kernel Mailing List,
Linux Next Mailing List, Thomas Weißschuh
[-- Attachment #1: Type: text/plain, Size: 1840 bytes --]
Hi all,
Today's linux-next merge of the slab tree got a conflict in:
mm/mempool.c
between commit:
25c4d8d29dbb ("mempool: clarify behavior of mempool_alloc_preallocated()")
from the mm-unstable tree and commit:
5c829783e5f8 ("mempool: improve kerneldoc comments")
from the slab tree.
I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging. You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.
--
Cheers,
Stephen Rothwell
diff --cc mm/mempool.c
index cceb09b75ebe,e14d1cf46c72..000000000000
--- a/mm/mempool.c
+++ b/mm/mempool.c
@@@ -456,13 -568,12 +568,12 @@@ EXPORT_SYMBOL(mempool_alloc_noprof)
/**
* mempool_alloc_preallocated - allocate an element from preallocated elements
- * belonging to a specific memory pool
- * @pool: pointer to the memory pool which was allocated via
- * mempool_create().
+ * belonging to a memory pool
+ * @pool: pointer to the memory pool
*
- * This function is similar to mempool_alloc, but it only attempts allocating
+ * This function is similar to mempool_alloc(), but it only attempts allocating
- * an element from the preallocated elements. It does not sleep and immediately
- * returns if no preallocated elements are available.
+ * an element from the preallocated elements. It only takes a single spinlock_t
+ * and immediately returns if no preallocated elements are available.
*
* Return: pointer to the allocated element or %NULL if no elements are
* available.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: linux-next: manual merge of the slab tree with the mm-unstable tree
2025-11-14 4:13 linux-next: manual merge of the slab tree with the mm-unstable tree Stephen Rothwell
@ 2025-11-14 5:06 ` Christoph Hellwig
2025-11-14 8:46 ` Vlastimil Babka
0 siblings, 1 reply; 15+ messages in thread
From: Christoph Hellwig @ 2025-11-14 5:06 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Vlastimil Babka, Cc: Andrew Morton, Christoph Hellwig,
Linux Kernel Mailing List, Linux Next Mailing List,
Thomas Weißschuh
On Fri, Nov 14, 2025 at 03:13:21PM +1100, Stephen Rothwell wrote:
> Hi all,
>
> Today's linux-next merge of the slab tree got a conflict in:
>
> mm/mempool.c
>
> between commit:
>
> 25c4d8d29dbb ("mempool: clarify behavior of mempool_alloc_preallocated()")
>
> from the mm-unstable tree and commit:
>
> 5c829783e5f8 ("mempool: improve kerneldoc comments")
Hmm, I guess we need to agree on which tree takes mempool patches, then
we can just rebase one side.
I also find 25c4d8d29dbb odd. Yes, with PREEMPT_RT anything taking
spinlocks could sleep in the normal sense, but pretty much everything
in Linux assumes spinlocks as spinning. So if we want to update that
we should agree on global conventions for it and not starting to update
random little functions individually.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: linux-next: manual merge of the slab tree with the mm-unstable tree
2025-11-14 5:06 ` Christoph Hellwig
@ 2025-11-14 8:46 ` Vlastimil Babka
2025-11-14 9:13 ` Thomas Weißschuh
0 siblings, 1 reply; 15+ messages in thread
From: Vlastimil Babka @ 2025-11-14 8:46 UTC (permalink / raw)
To: Christoph Hellwig, Stephen Rothwell
Cc: Andrew Morton, Linux Kernel Mailing List, Linux Next Mailing List,
Thomas Weißschuh
On 11/14/25 06:06, Christoph Hellwig wrote:
> On Fri, Nov 14, 2025 at 03:13:21PM +1100, Stephen Rothwell wrote:
>> Hi all,
>>
>> Today's linux-next merge of the slab tree got a conflict in:
>>
>> mm/mempool.c
>>
>> between commit:
>>
>> 25c4d8d29dbb ("mempool: clarify behavior of mempool_alloc_preallocated()")
>>
>> from the mm-unstable tree and commit:
>>
>> 5c829783e5f8 ("mempool: improve kerneldoc comments")
>
> Hmm, I guess we need to agree on which tree takes mempool patches, then
> we can just rebase one side.
I can take that patch as mm-unstable (not -stable) means it's still
droppable there at this point.
> I also find 25c4d8d29dbb odd. Yes, with PREEMPT_RT anything taking
> spinlocks could sleep in the normal sense, but pretty much everything
> in Linux assumes spinlocks as spinning. So if we want to update that
> we should agree on global conventions for it and not starting to update
> random little functions individually.
That's also true. Thomas, is this case special or what motivated the patch
in the first place?
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: linux-next: manual merge of the slab tree with the mm-unstable tree
2025-11-14 8:46 ` Vlastimil Babka
@ 2025-11-14 9:13 ` Thomas Weißschuh
2025-11-14 11:55 ` Christoph Hellwig
0 siblings, 1 reply; 15+ messages in thread
From: Thomas Weißschuh @ 2025-11-14 9:13 UTC (permalink / raw)
To: Vlastimil Babka, Christoph Hellwig
Cc: Stephen Rothwell, Andrew Morton, Linux Kernel Mailing List,
Linux Next Mailing List
On Fri, Nov 14, 2025 at 09:46:30AM +0100, Vlastimil Babka wrote:
> On 11/14/25 06:06, Christoph Hellwig wrote:
> > On Fri, Nov 14, 2025 at 03:13:21PM +1100, Stephen Rothwell wrote:
> >> Hi all,
> >>
> >> Today's linux-next merge of the slab tree got a conflict in:
> >>
> >> mm/mempool.c
> >>
> >> between commit:
> >>
> >> 25c4d8d29dbb ("mempool: clarify behavior of mempool_alloc_preallocated()")
> >>
> >> from the mm-unstable tree and commit:
> >>
> >> 5c829783e5f8 ("mempool: improve kerneldoc comments")
> >
> > Hmm, I guess we need to agree on which tree takes mempool patches, then
> > we can just rebase one side.
>
> I can take that patch as mm-unstable (not -stable) means it's still
> droppable there at this point.
>
> > I also find 25c4d8d29dbb odd. Yes, with PREEMPT_RT anything taking
> > spinlocks could sleep in the normal sense, but pretty much everything
> > in Linux assumes spinlocks as spinning.
This is why the new documentation explicitly mentions the spinlock.
All callers can interpret this relative to their own usecase.
> > So if we want to update that
> > we should agree on global conventions for it and not starting to update
> > random little functions individually.
The behaviour of different locks under various kernel configurations is
already documented extensively. My change explicitly tried to defer to that.
We have the 'Context:' tag in kdoc. What about the following?
Context: Any context. Takes and releases pool->lock.
> That's also true. Thomas, is this case special
No, not special. Just one of the few places which promises to "never sleep".
> or what motivated the patch in the first place?
I used the function in a tracepoint handler [0] and trusted its documentation
to "never sleep". That turned out to be incorrect.
Also see the discussion on the patch submission [1] about just this point,
where we didn't come up with better wording.
[0] https://lore.kernel.org/lkml/20250919-rv-reactor-signal-v1-1-fb0012034158@linutronix.de/
[1] https://lore.kernel.org/lkml/20251014-mempool-doc-v1-1-bc9ebf169700@linutronix.de/
Thomas
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: linux-next: manual merge of the slab tree with the mm-unstable tree
2025-11-14 9:13 ` Thomas Weißschuh
@ 2025-11-14 11:55 ` Christoph Hellwig
2025-11-20 13:31 ` Thomas Weißschuh
0 siblings, 1 reply; 15+ messages in thread
From: Christoph Hellwig @ 2025-11-14 11:55 UTC (permalink / raw)
To: Thomas Weißschuh
Cc: Vlastimil Babka, Christoph Hellwig, Stephen Rothwell,
Andrew Morton, Linux Kernel Mailing List, Linux Next Mailing List
On Fri, Nov 14, 2025 at 10:13:40AM +0100, Thomas Weißschuh wrote:
> We have the 'Context:' tag in kdoc. What about the following?
>
> Context: Any context. Takes and releases pool->lock.
Which in this case would be ok. But what about functions that take
non-irqsave spinlocks?
> I used the function in a tracepoint handler [0] and trusted its documentation
> to "never sleep". That turned out to be incorrect.
Heh, you'll find a lot of those..
> Also see the discussion on the patch submission [1] about just this point,
> where we didn't come up with better wording.
Can we please start a discussion on this on say linux-doc and
linux-kernel? I don't really have a good answer, but this current
idea feels a bit lacking. I don't meant that as trying to block
this patch, but I think we need to come up with a better convention.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: linux-next: manual merge of the slab tree with the mm-unstable tree
2025-11-14 11:55 ` Christoph Hellwig
@ 2025-11-20 13:31 ` Thomas Weißschuh
2025-11-20 17:51 ` Vlastimil Babka
0 siblings, 1 reply; 15+ messages in thread
From: Thomas Weißschuh @ 2025-11-20 13:31 UTC (permalink / raw)
To: Christoph Hellwig
Cc: Vlastimil Babka, Stephen Rothwell, Andrew Morton,
Linux Kernel Mailing List, Linux Next Mailing List
On Fri, Nov 14, 2025 at 12:55:38PM +0100, Christoph Hellwig wrote:
> On Fri, Nov 14, 2025 at 10:13:40AM +0100, Thomas Weißschuh wrote:
> > We have the 'Context:' tag in kdoc. What about the following?
> >
> > Context: Any context. Takes and releases pool->lock.
>
> Which in this case would be ok. But what about functions that take
> non-irqsave spinlocks?
>
> > I used the function in a tracepoint handler [0] and trusted its documentation
> > to "never sleep". That turned out to be incorrect.
>
> Heh, you'll find a lot of those..
Yeah... But people are working on fixing them.
> > Also see the discussion on the patch submission [1] about just this point,
> > where we didn't come up with better wording.
>
> Can we please start a discussion on this on say linux-doc and
> linux-kernel? I don't really have a good answer, but this current
> idea feels a bit lacking. I don't meant that as trying to block
> this patch, but I think we need to come up with a better convention.
Make sense. Right now I don't really have the capacity to see this through,
but hopefully I get to it later.
My patch not really critical, so if it gets in the way it can be dropped.
Nearly nobody is using this function anyways.
Thomas
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: linux-next: manual merge of the slab tree with the mm-unstable tree
2025-11-20 13:31 ` Thomas Weißschuh
@ 2025-11-20 17:51 ` Vlastimil Babka
0 siblings, 0 replies; 15+ messages in thread
From: Vlastimil Babka @ 2025-11-20 17:51 UTC (permalink / raw)
To: Thomas Weißschuh, Christoph Hellwig
Cc: Stephen Rothwell, Andrew Morton, Linux Kernel Mailing List,
Linux Next Mailing List
On 11/20/25 14:31, Thomas Weißschuh wrote:
> On Fri, Nov 14, 2025 at 12:55:38PM +0100, Christoph Hellwig wrote:
>> On Fri, Nov 14, 2025 at 10:13:40AM +0100, Thomas Weißschuh wrote:
>> > We have the 'Context:' tag in kdoc. What about the following?
>> >
>> > Context: Any context. Takes and releases pool->lock.
>>
>> Which in this case would be ok. But what about functions that take
>> non-irqsave spinlocks?
>>
>> > I used the function in a tracepoint handler [0] and trusted its documentation
>> > to "never sleep". That turned out to be incorrect.
>>
>> Heh, you'll find a lot of those..
>
> Yeah... But people are working on fixing them.
>
>> > Also see the discussion on the patch submission [1] about just this point,
>> > where we didn't come up with better wording.
>>
>> Can we please start a discussion on this on say linux-doc and
>> linux-kernel? I don't really have a good answer, but this current
>> idea feels a bit lacking. I don't meant that as trying to block
>> this patch, but I think we need to come up with a better convention.
>
> Make sense. Right now I don't really have the capacity to see this through,
> but hopefully I get to it later.
> My patch not really critical, so if it gets in the way it can be dropped.
> Nearly nobody is using this function anyways.
I've left your patch in the slab/for-next as-is.
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2025-11-20 17:51 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-14 4:13 linux-next: manual merge of the slab tree with the mm-unstable tree Stephen Rothwell
2025-11-14 5:06 ` Christoph Hellwig
2025-11-14 8:46 ` Vlastimil Babka
2025-11-14 9:13 ` Thomas Weißschuh
2025-11-14 11:55 ` Christoph Hellwig
2025-11-20 13:31 ` Thomas Weißschuh
2025-11-20 17:51 ` Vlastimil Babka
-- strict thread matches above, loose matches on Subject: below --
2025-09-04 6:29 Stephen Rothwell
2025-09-04 8:39 ` Vlastimil Babka
2025-09-04 21:39 ` Andrew Morton
2025-09-04 6:20 Stephen Rothwell
2025-07-21 4:20 Stephen Rothwell
2025-07-21 19:38 ` Matthew Wilcox
2025-07-21 21:35 ` Luiz Capitulino
2025-07-22 8:30 ` Vlastimil Babka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox