mm,page_owner: don't remove __GFP_NOLOCKDEP in add_stack_record_to_list
Subsystems (2)
PATCH v2 1/1 mm,page_owner: don't remove __GFP_NOLOCKDEP in add_stack_record_to_list
Otherwise we'll generate false lockdep positives.
Fixes 217b2119b9e2 ("mm,page_owner: implement the tracking of the stacks count")
Signed-off-by Christoph Hellwig <[email protected]>
---
Changes since v1:
- only pass on __GFP_NOLOCKDEP and leave the other masking in place
mm/page_owner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/page_owner.c +1 -1
@@ -170,7 +170,7 @@ static void add_stack_record_to_list(struct stack_record *stack_record,/* Filter gfp_mask the same way stackdepot does, for consistency */ gfp_mask &= ~GFP_ZONEMASK ; - gfp_mask &= (GFP_ATOMIC |GFP_KERNEL ); + gfp_mask &= (GFP_ATOMIC |GFP_KERNEL | __GFP_NOLOCKDEP); gfp_mask |= __GFP_NOWARN;set_current_in_page_owner ();
Signature · 1 line
2.39.2
Quoted 4 lines · Christoph Hellwig
Otherwise we'll generate false lockdep positives.
Fixes 217b2119b9e2 ("mm,page_owner: implement the tracking of the stacks count")Signed-off-by Christoph Hellwig <[email protected]>
Reviewed-by Vlastimil Babka <[email protected]>
Quoted 21 lines
---
Changes since v1:
- only pass on__GFP_NOLOCKDEPand leave the other masking in placemm/page_owner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)mm/page_owner.c +1
-1@@ -170,7 +170,7 @@ static void add_stack_record_to_list(struct stack_record *stack_record,/* Filter gfp_mask the same way stackdepot does, for consistency */ gfp_mask &= ~GFP_ZONEMASK ; - gfp_mask &= (GFP_ATOMIC |GFP_KERNEL ); + gfp_mask &= (GFP_ATOMIC |GFP_KERNEL | __GFP_NOLOCKDEP); gfp_mask |= __GFP_NOWARN;set_current_in_page_owner ();
Quoted 4 lines · Christoph Hellwig
Otherwise we'll generate false lockdep positives.
Fixes 217b2119b9e2 ("mm,page_owner: implement the tracking of the stacks count")Signed-off-by Christoph Hellwig <[email protected]>
Acked-by Oscar Salvador <[email protected]>
Signature · 2 lines
Oscar Salvador SUSE Labs