Jia He
b4223a510e
mm/memory_hotplug: fix unpaired mem_hotplug_begin/done
...
When check_memblock_offlined_cb() returns failed rc(e.g. the memblock is
online at that time), mem_hotplug_begin/done is unpaired in such case.
Therefore a warning:
Call Trace:
percpu_up_write+0x33/0x40
try_remove_memory+0x66/0x120
? _cond_resched+0x19/0x30
remove_memory+0x2b/0x40
dev_dax_kmem_remove+0x36/0x72 [kmem]
device_release_driver_internal+0xf0/0x1c0
device_release_driver+0x12/0x20
bus_remove_device+0xe1/0x150
device_del+0x17b/0x3e0
unregister_dev_dax+0x29/0x60
devm_action_release+0x15/0x20
release_nodes+0x19a/0x1e0
devres_release_all+0x3f/0x50
device_release_driver_internal+0x100/0x1c0
driver_detach+0x4c/0x8f
bus_remove_driver+0x5c/0xd0
driver_unregister+0x31/0x50
dax_pmem_exit+0x10/0xfe0 [dax_pmem]
Fixes: f1037ec0cc8a ("mm/memory_hotplug: fix remove_memory() lockdep splat")
Signed-off-by: Jia He <justin.he@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Dan Williams <dan.j.williams@intel.com>
Cc: <stable@vger.kernel.org> [5.6+]
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Baoquan He <bhe@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Chuhong Yuan <hslester96@gmail.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Dave Jiang <dave.jiang@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
Cc: Kaly Xin <Kaly.Xin@arm.com>
Cc: Logan Gunthorpe <logang@deltatee.com>
Cc: Masahiro Yamada <masahiroy@kernel.org>
Cc: Mike Rapoport <rppt@linux.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rich Felker <dalias@libc.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Vishal Verma <vishal.l.verma@intel.com>
Cc: Will Deacon <will@kernel.org>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Link: http://lkml.kernel.org/r/20200710031619.18762-3-justin.he@arm.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-08-12 10:57:57 -07:00
..
2020-08-09 14:10:26 -07:00
2020-07-08 17:05:53 -06:00
2019-09-04 07:42:01 -04:00
2019-07-12 12:24:03 -07:00
2020-07-10 13:54:00 -07:00
2020-08-12 10:57:57 -07:00
2020-08-12 10:57:57 -07:00
2020-08-12 10:57:56 -07:00
2020-08-07 11:33:23 -07:00
2020-08-07 11:33:23 -07:00
2020-04-07 10:43:42 -07:00
2020-01-31 10:30:38 -08:00
2020-06-02 10:59:06 -07:00
2019-07-12 11:05:43 -07:00
2020-08-07 11:33:23 -07:00
2020-06-09 09:39:14 -07:00
2020-07-16 12:35:15 -07:00
2020-04-02 09:35:27 -07:00
2020-08-07 11:33:23 -07:00
2019-12-10 10:12:55 +01:00
2020-07-10 16:24:28 -03:00
2020-08-12 10:57:57 -07:00
2020-04-07 10:43:41 -07:00
2020-08-12 10:57:57 -07:00
2019-12-01 12:59:09 -08:00
2020-06-09 09:39:14 -07:00
2020-08-12 10:57:56 -07:00
2019-06-19 17:09:08 +02:00
2020-08-07 11:33:26 -07:00
2020-08-07 11:33:27 -07:00
2020-06-14 01:57:21 +09:00
2020-08-12 10:57:55 -07:00
2019-06-05 17:37:06 +02:00
2020-04-02 09:35:26 -07:00
2020-08-07 10:33:50 -07:00
2020-06-29 11:59:25 -07:00
2020-06-17 10:57:41 -07:00
2020-06-09 09:39:14 -07:00
2020-08-07 11:33:26 -07:00
2020-04-02 09:35:29 -07:00
2020-07-10 15:08:09 +02:00
2020-08-12 10:57:55 -07:00
2019-09-24 15:54:08 -07:00
2020-08-12 10:57:57 -07:00
2020-06-11 18:17:47 -07:00
2020-08-12 10:57:56 -07:00
2020-08-12 10:57:56 -07:00
2019-03-05 21:07:20 -08:00
2020-04-10 15:36:21 -07:00
2020-08-12 10:57:57 -07:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2020-08-07 11:33:26 -07:00
2020-08-07 11:33:27 -07:00
2020-06-09 09:39:14 -07:00
2020-08-12 10:57:57 -07:00
2020-06-09 09:39:14 -07:00
2020-08-07 11:33:27 -07:00
2020-06-09 09:39:14 -07:00
2020-08-07 11:33:27 -07:00
2020-08-12 10:57:56 -07:00
2020-08-07 11:33:29 -07:00
2020-08-07 11:33:26 -07:00
2020-04-07 10:43:40 -07:00
2020-06-08 11:05:55 -07:00
2020-08-07 11:33:24 -07:00
2020-06-04 15:36:52 -04:00
2020-06-03 20:09:45 -07:00
2019-09-24 15:54:08 -07:00
2020-04-07 10:43:39 -07:00
2020-06-09 09:39:13 -07:00
2020-01-31 10:30:38 -08:00
2020-08-07 11:33:28 -07:00
2020-06-09 09:39:14 -07:00
2020-08-12 10:57:55 -07:00
2020-08-12 10:57:55 -07:00
2020-08-12 10:57:55 -07:00
2020-08-12 10:57:55 -07:00
2020-08-12 10:57:55 -07:00
2020-08-07 11:33:26 -07:00
2020-06-09 09:39:13 -07:00
2020-06-09 09:39:14 -07:00
2020-06-09 09:39:14 -07:00
2020-06-02 10:59:07 -07:00
2020-08-12 10:57:56 -07:00
2020-06-17 10:57:41 -07:00
2020-08-12 10:57:55 -07:00
2020-08-07 11:33:29 -07:00
2020-08-07 11:33:29 -07:00
2020-08-07 11:33:25 -07:00
2020-08-07 11:33:25 -07:00
2020-08-07 11:33:25 -07:00
2020-08-07 11:33:24 -07:00
2020-08-07 11:33:25 -07:00
2020-08-07 11:33:27 -07:00
2020-08-07 11:33:27 -07:00
2020-06-03 20:09:48 -07:00
2020-08-07 11:33:24 -07:00
2020-08-12 10:57:56 -07:00
2020-08-12 10:57:55 -07:00
2020-08-12 10:57:55 -07:00
2019-10-19 06:32:33 -04:00
2019-09-17 15:20:17 -07:00
2020-08-12 10:57:55 -07:00
2020-08-07 11:33:27 -07:00
2020-06-10 19:14:18 -07:00
2020-08-07 11:33:28 -07:00
2020-04-02 09:35:31 -07:00
2020-08-12 10:57:56 -07:00
2020-08-12 10:57:57 -07:00
2020-08-12 10:57:56 -07:00
2020-05-28 11:35:40 -07:00
2020-06-04 19:06:24 -07:00
2019-09-24 15:54:12 -07:00
2020-06-09 09:39:13 -07:00
2020-04-07 10:43:41 -07:00