lkml.org 
[lkml]   [2012]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 1/4] acpi,memory-hotplug : add memory offline code to acpi_memory_device_remove()
>> ??
>> If resource was not allocated a driver, a driver doesn't need to
>> deallocate it when
>> error path. I haven't caught your point.
>>
>
> REMOVAL_NORMAL can be in 2 cases:
> 1. error path. If init call fails, we don't call it. We call this function
> only when something fails after init.
> 2. unbind the device from the driver.
> If we don't offline and remove memory when unbinding the device from the driver,
> the device may be out of control. When we eject this driver, we don't offline and

Memory never be out of control by driver unloading. It is controled
from kernel core. It is an exception from regular linux driver model.


> remove it, but we will eject and poweroff the device. It is very dangerous because
> the kernel uses the memory but we poweroff it.
>
> acpi_bus_hot_remove_device()
> acpi_bus_trim() // this function successes because the device has no driver
> _PS3 // poweroff
> _EJ0 // eject


\
 
 \ /
  Last update: 2012-10-22 18:21    [W:0.338 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site