mm-slub-list_lock-may-not-be-held-in-some-circumstances.patch removed from -mm tree
Subsystems (2)
[email protected]
maintainerSubject: [merged] mm-slub-list_lock-may-not-be-held-in-some-circumstances.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 11 Feb 2014 11:23:30 -0800
The patch titled
Subject: mm/slub.c: list_lock may not be held in some circumstances
has been removed from the -mm tree. Its filename was
mm-slub-list_lock-may-not-be-held-in-some-circumstances.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: David Rientjes <[email protected]>
Subject: mm/slub.c: list_lock may not be held in some circumstances
Commit c65c1877bd68 ("slub: use lockdep_assert_held") incorrectly required that add_full() and remove_full() hold n->list_lock. The lock is only taken when kmem_cache_debug(s), since that's the only time it actually does anything.
Require that the lock only be taken under such a condition.
---
mm/slub.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
mm/slub.c renamed from mm/slub.c~mm-slub-list_lock-may-not-be-held-in-some-circumstances +2 -4
@@ -1004,21 +1004,19 @@ static inline void slab_free_hook(structstatic void add_full (struct kmem_cache *s,struct kmem_cache_node *n,struct page *page) { -lockdep_assert_held (&n->list_lock); -if (!(s->flags &SLAB_STORE_USER ))return ; +lockdep_assert_held (&n->list_lock);list_add (&page->lru, &n->full); }static void remove_full (struct kmem_cache *s,struct kmem_cache_node *n,struct page *page) { -lockdep_assert_held (&n->list_lock); -if (!(s->flags &SLAB_STORE_USER ))return ; +lockdep_assert_held (&n->list_lock);list_del (&page->lru); }
_
Patches currently in -mm which might be from [email protected] are
origin.patch mm-page_alloc-make-first_page-visible-before-pagetail.patch kthread-ensure-locality-of-task_struct-allocations.patch mm-slab-slub-use-page-list-consistently-instead-of-page-lru.patch mm-compaction-ignore-pageblock-skip-when-manually-invoking-compaction.patch mm-vmscan-shrink_slab-rename-max_pass-freeable.patch mm-hugetlb-mark-some-bootstrap-functions-as-__init.patch mm-compaction-avoid-isolating-pinned-pages.patch mm-compactionc-mark-function-as-static.patch mm-memoryc-mark-functions-as-static.patch mm-mmapc-mark-function-as-static.patch mm-process_vm_accessc-mark-function-as-static.patch mm-page_cgroupc-mark-functions-as-static.patch mm-nobootmemc-mark-function-as-static.patch include-linux-mmh-remove-ifdef-condition.patch mm-readaheadc-fix-readahead-fail-for-no-local-memory-and-limit-readahead-pages.patch mm-utilc-add-kstrimdup.patch cpusets-allocate-heap-only-when-required.patch
linux-next.patch