Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1596047 > unrolled thread

[PATCH 0/2] mm: add private lock to serialize memory hotplug operations

Started byHeiko Carstens <heiko.carstens@de.ibm.com>
First post2017-03-09 14:10 +0100
Last post2017-03-09 20:20 +0100
Articles 3 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/2] mm: add private lock to serialize memory hotplug operations Heiko Carstens <heiko.carstens@de.ibm.com> - 2017-03-09 14:10 +0100
    [PATCH 2/2] drivers core: remove assert_held_device_hotplug() Heiko Carstens <heiko.carstens@de.ibm.com> - 2017-03-09 14:10 +0100
      Re: [PATCH 2/2] drivers core: remove assert_held_device_hotplug() Dan Williams <dan.j.williams@intel.com> - 2017-03-09 20:20 +0100

#1596047 — [PATCH 0/2] mm: add private lock to serialize memory hotplug operations

FromHeiko Carstens <heiko.carstens@de.ibm.com>
Date2017-03-09 14:10 +0100
Subject[PATCH 0/2] mm: add private lock to serialize memory hotplug operations
Message-ID<tj5Zo-5Ce-15@gated-at.bofh.it>
These two patches are supposed to hopefully fix a memory hotplug
problem reported by Sebastian Ott.

Heiko Carstens (2):
  mm: add private lock to serialize memory hotplug operations
  drivers core: remove assert_held_device_hotplug()

 drivers/base/core.c    | 5 -----
 include/linux/device.h | 1 -
 kernel/memremap.c      | 4 ----
 mm/memory_hotplug.c    | 6 +++++-
 4 files changed, 5 insertions(+), 11 deletions(-)

-- 
2.8.4

[toc] | [next] | [standalone]


#1596050 — [PATCH 2/2] drivers core: remove assert_held_device_hotplug()

FromHeiko Carstens <heiko.carstens@de.ibm.com>
Date2017-03-09 14:10 +0100
Subject[PATCH 2/2] drivers core: remove assert_held_device_hotplug()
Message-ID<tj5Zo-5Ce-35@gated-at.bofh.it>
In reply to#1596047
The last caller of assert_held_device_hotplug() is gone, so remove it again.

Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Cc: Ben Hutchings <ben@decadent.org.uk>
Cc: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
---
 drivers/base/core.c    | 5 -----
 include/linux/device.h | 1 -
 2 files changed, 6 deletions(-)

diff --git a/drivers/base/core.c b/drivers/base/core.c
index 684bda4d14a1..6bb60fb6a30b 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -639,11 +639,6 @@ int lock_device_hotplug_sysfs(void)
 	return restart_syscall();
 }
 
-void assert_held_device_hotplug(void)
-{
-	lockdep_assert_held(&device_hotplug_lock);
-}
-
 #ifdef CONFIG_BLOCK
 static inline int device_is_not_partition(struct device *dev)
 {
diff --git a/include/linux/device.h b/include/linux/device.h
index 30c4570e928d..9ef518af5515 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -1140,7 +1140,6 @@ static inline bool device_supports_offline(struct device *dev)
 extern void lock_device_hotplug(void);
 extern void unlock_device_hotplug(void);
 extern int lock_device_hotplug_sysfs(void);
-void assert_held_device_hotplug(void);
 extern int device_offline(struct device *dev);
 extern int device_online(struct device *dev);
 extern void set_primary_fwnode(struct device *dev, struct fwnode_handle *fwnode);
-- 
2.8.4

[toc] | [prev] | [next] | [standalone]


#1596351 — Re: [PATCH 2/2] drivers core: remove assert_held_device_hotplug()

FromDan Williams <dan.j.williams@intel.com>
Date2017-03-09 20:20 +0100
SubjectRe: [PATCH 2/2] drivers core: remove assert_held_device_hotplug()
Message-ID<tjbLr-143-13@gated-at.bofh.it>
In reply to#1596050
On Thu, Mar 9, 2017 at 5:06 AM, Heiko Carstens
<heiko.carstens@de.ibm.com> wrote:
> The last caller of assert_held_device_hotplug() is gone, so remove it again.
>
> Cc: Dan Williams <dan.j.williams@intel.com>
> Cc: Michal Hocko <mhocko@suse.com>
> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
> Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
> Cc: Ben Hutchings <ben@decadent.org.uk>
> Cc: Gerald Schaefer <gerald.schaefer@de.ibm.com>
> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
> Cc: Sebastian Ott <sebott@linux.vnet.ibm.com>
> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>

Acked-by: Dan Williams <dan.j.williams@intel.com>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web