Skip to content

Commit

Permalink
mm-hugetlb-change-to-return-bool-for-isolate_hugetlb-fix
Browse files Browse the repository at this point in the history
shorten locked section, per SeongJae Park

Cc: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
Andrew Morton committed Feb 16, 2023
1 parent 76d75df commit 296b8b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/hugetlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2933,8 +2933,8 @@ static int alloc_and_dissolve_hugetlb_folio(struct hstate *h,
*/
spin_unlock_irq(&hugetlb_lock);
isolated = isolate_hugetlb(old_folio, list);
spin_lock_irq(&hugetlb_lock);
ret = isolated ? 0 : -EBUSY;
spin_lock_irq(&hugetlb_lock);
goto free_new;
} else if (!folio_test_hugetlb_freed(old_folio)) {
/*
Expand Down

0 comments on commit 296b8b5

Please sign in to comment.