Re: [PATCH v3 4/6] watchdog: add watchdog pretimeout framework

From: Wolfram Sang
Date: Thu Jun 09 2016 - 17:22:43 EST



> > >> * moved sysfs device attributes to watchdog_dev.c, this required to
> > >> add exported watchdog_pretimeout_governor_name() interface
> > >
> > > Why this move? Before, all the pretimeout stuff was nicely encapsulated
> > > in its own file which could be compiled out. Now things are mixing. What
> > > was wrong with the approach I took?`
> >
> > Simplification of the "struct device" life time management?
> > A lot of time and efforts were spent to centralize it, while you know
> > that I took both approaches, I tend to keep it exclusively in
> > watchdog_dev.c , probably Guenter can express his point of view.
> >
>
> Yes, I am very much concerned that I'll have to go back and look into
> all the lifetime issues again which we just managed to resolve.
> Not looking forward to it :-(.

I will have a look at it again, too... but I still wonder if this is an
issue if the whole pretimeout governor framework is spawned from
watchdog_dev.c. And I understand things can be subtle here.

Attachment: signature.asc
Description: PGP signature