diff for duplicates of <1326632384.11711.3.camel@lappy> diff --git a/a/1.txt b/N1/1.txt index 21f7d82..14f8a0d 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -8,39 +8,3 @@ On Sat, 2012-01-14 at 18:10 +0100, Eric Dumazet wrote: I've made the following patch to test it, It doesn't look like it's the correct solution, but it verifies that the problem is there (it works well with the patch). --------------- - ->From cc4874b491b8e5d9d1ea5bf2032413efdbddced8 Mon Sep 17 00:00:00 2001 -From: Sasha Levin <levinsasha928@gmail.com> -Date: Sun, 15 Jan 2012 14:55:03 +0200 -Subject: [PATCH] slab: Fix hang when creating sysfs entries - -This patch fixes the hang which happens when we create a sysfs entry and call -back to userspace. If the usermode helper tries to do anything which involves -slub_lock we will hang since slub_lock is already held. - -Signed-off-by: Sasha Levin <levinsasha928@gmail.com> ---- - mm/slub.c | 2 ++ - 1 files changed, 2 insertions(+), 0 deletions(-) - -diff --git a/mm/slub.c b/mm/slub.c -index 4907563..6948327 100644 ---- a/mm/slub.c -+++ b/mm/slub.c -@@ -5283,7 +5283,9 @@ static int sysfs_slab_add(struct kmem_cache *s) - kobject_put(&s->kobj); - return err; - } -+ up_write(&slub_lock); - kobject_uevent(&s->kobj, KOBJ_ADD); -+ down_write(&slub_lock); - if (!unmergeable) { - /* Setup first alias */ - sysfs_slab_alias(s, s->name); --- -1.7.8.3 - - --- - -Sasha. diff --git a/a/content_digest b/N1/content_digest index 5fe19b9..ad0e972 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -26,42 +26,6 @@ "\n" "I've made the following patch to test it, It doesn't look like it's the correct solution, but it verifies that the problem is there (it works well with the patch).\n" "\n" - "---------------\n" - "\n" - ">From cc4874b491b8e5d9d1ea5bf2032413efdbddced8 Mon Sep 17 00:00:00 2001\n" - "From: Sasha Levin <levinsasha928@gmail.com>\n" - "Date: Sun, 15 Jan 2012 14:55:03 +0200\n" - "Subject: [PATCH] slab: Fix hang when creating sysfs entries\n" - "\n" - "This patch fixes the hang which happens when we create a sysfs entry and call\n" - "back to userspace. If the usermode helper tries to do anything which involves\n" - "slub_lock we will hang since slub_lock is already held.\n" - "\n" - "Signed-off-by: Sasha Levin <levinsasha928@gmail.com>\n" - "---\n" - " mm/slub.c | 2 ++\n" - " 1 files changed, 2 insertions(+), 0 deletions(-)\n" - "\n" - "diff --git a/mm/slub.c b/mm/slub.c\n" - "index 4907563..6948327 100644\n" - "--- a/mm/slub.c\n" - "+++ b/mm/slub.c\n" - "@@ -5283,7 +5283,9 @@ static int sysfs_slab_add(struct kmem_cache *s)\n" - " \t\tkobject_put(&s->kobj);\n" - " \t\treturn err;\n" - " \t}\n" - "+\tup_write(&slub_lock);\n" - " \tkobject_uevent(&s->kobj, KOBJ_ADD);\n" - "+\tdown_write(&slub_lock);\n" - " \tif (!unmergeable) {\n" - " \t\t/* Setup first alias */\n" - " \t\tsysfs_slab_alias(s, s->name);\n" - "-- \n" - "1.7.8.3\n" - "\n" - "\n" - "-- \n" - "\n" - Sasha. + --------------- -a77f4ce6670ae062e7eb15690d64df6d6a9ca43903746f05260744f9e16c68b1 +8ffd6ef2d522486e427c3496854baf0badeadd1e0d07a52d49429de3b52ce1a2
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.