Re: kexec: device shutdown vs. remove

From: Eric W. Biederman
Date: Sun Jul 24 2016 - 17:50:20 EST


Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> writes:

> On Sat, 2016-07-23 at 22:18 -0700, Guenter Roeck wrote:
>> I suspect that using (or depending on) the remove function may not be feasible
>> anymore after the recent effort by Paul Gortmaker to make drivers explicitly
>> non-modular if they are only configurable as boolean. In many cases, this
>> involved dropping remove functions.
>
> A lot of drivers we care about are modular. But maybe the right
> approach is to do something like remove() if it exist and shutdown() if
> it doesn't ? Or a new callback for kexec ? quiesce() ?

Perhaps remove if shutdown does not exist. What this really takes is
someone to care enough to sort through this mess.

Eric