linux/drivers/acpi
Rafael J. Wysocki 33f61d725a ACPI: OSL: Prevent acpi_release_memory() from returning too early
After commit 1757659d02 ("ACPI: OSL: Implement deferred unmapping
of ACPI memory") in some cases acpi_release_memory() may return
before the target memory mappings actually go away, because they
are released asynchronously now.

Prevent it from returning prematurely by making it wait for the next
RCU grace period to elapse, for all of the RCU callbacks to complete
and for all of the scheduled work items to be flushed before
returning.

Fixes: 1757659d02 ("ACPI: OSL: Implement deferred unmapping of ACPI memory")
Reported-by: Kenneth R. Crudup <kenny@panix.com>
Tested-by: Kenneth R. Crudup <kenny@panix.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
2020-08-25 16:22:08 +02:00
..
acpica Merge branches 'acpi-mm', 'acpi-tables', 'acpi-apei' and 'acpi-misc' 2020-08-03 13:14:42 +02:00
apei ACPI: APEI: remove redundant assignment to variable rc 2020-07-27 15:22:58 +02:00
arm64 ACPI/IORT: Add an input ID to acpi_dma_configure() 2020-07-28 15:51:31 +01:00
dptf ACPI: DPTF: Add battery participant for TigerLake 2020-06-29 14:00:57 +02:00
nfit libnvdimm for 5.9 2020-08-11 10:59:19 -07:00
numa ACPI: NUMA: Remove the useless 'node >= MAX_NUMNODES' check 2020-07-27 15:19:12 +02:00
pmic
x86
ac.c Merge branches 'acpi-mm', 'acpi-tables', 'acpi-apei' and 'acpi-misc' 2020-08-03 13:14:42 +02:00
acpi_adxl.c
acpi_amba.c
acpi_apd.c ACPI: APD: Add a fmw property is_raven 2020-08-07 20:12:00 +02:00
acpi_cmos_rtc.c
acpi_configfs.c ACPI: configfs: Disallow loading ACPI tables when locked down 2020-06-22 16:41:27 +02:00
acpi_dbg.c
acpi_extlog.c
acpi_ipmi.c
acpi_lpat.c
acpi_lpit.c
acpi_lpss.c
acpi_memhotplug.c
acpi_pad.c This tree adds the sched_set_fifo*() encapsulation APIs to remove 2020-08-06 11:55:43 -07:00
acpi_platform.c
acpi_pnp.c
acpi_processor.c ACPI: Use fallthrough pseudo-keyword 2020-07-09 14:09:28 +02:00
acpi_tad.c
acpi_video.c
acpi_watchdog.c
battery.c ACPI: procfs: Remove last dirs after being marked deprecated for a decade 2020-06-22 16:55:47 +02:00
bgrt.c
blacklist.c
bus.c
button.c ACPI: Use fallthrough pseudo-keyword 2020-07-09 14:09:28 +02:00
container.c
cppc_acpi.c
custom_method.c
debugfs.c
device_pm.c
device_sysfs.c
dock.c ACPI: Use fallthrough pseudo-keyword 2020-07-09 14:09:28 +02:00
ec.c ACPI: EC: add newline when printing 'ec_event_clearing' module parameter 2020-06-22 17:17:18 +02:00
ec_sys.c
event.c
evged.c ACPI: Use fallthrough pseudo-keyword 2020-07-09 14:09:28 +02:00
fan.c ACPI: fan: Fix Tiger Lake ACPI device ID 2020-06-30 19:32:45 +02:00
glue.c
hed.c
internal.h
ioapic.c
irq.c
Kconfig Merge branches 'acpi-mm', 'acpi-tables', 'acpi-apei' and 'acpi-misc' 2020-08-03 13:14:42 +02:00
Makefile ACPI: procfs: Remove last dirs after being marked deprecated for a decade 2020-06-22 16:55:47 +02:00
nvs.c
osi.c
osl.c ACPI: OSL: Prevent acpi_release_memory() from returning too early 2020-08-25 16:22:08 +02:00
pci_irq.c
pci_link.c
pci_mcfg.c
pci_root.c
pci_slot.c
power.c
pptt.c
proc.c
processor_core.c
processor_driver.c
processor_idle.c ACPI updates for 5.9-rc1 2020-08-03 20:37:22 -07:00
processor_pdc.c
processor_perflib.c
processor_thermal.c
processor_throttling.c
property.c for-5.9/drivers-20200803 2020-08-05 10:51:40 -07:00
reboot.c
resource.c ACPI: Use fallthrough pseudo-keyword 2020-07-09 14:09:28 +02:00
sbs.c
sbshc.c
sbshc.h
scan.c ACPI/IORT: Add an input ID to acpi_dma_configure() 2020-07-28 15:51:31 +01:00
sleep.c
sleep.h
spcr.c ACPI: Use fallthrough pseudo-keyword 2020-07-09 14:09:28 +02:00
sysfs.c Merge back sysfs-related ACPI material for v5.9. 2020-06-29 13:49:49 +02:00
tables.c ACPI: tables: Remove the duplicated checks for acpi_parse_entries_array() 2020-07-27 15:19:12 +02:00
thermal.c acpi: thermal: Don't call thermal_zone_device_is_enabled() 2020-07-07 01:26:06 +02:00
tiny-power-button.c
utils.c
video_detect.c
wakeup.c