[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <s5h7fwo1s4h.wl-tiwai@suse.de>
Date: Thu, 15 Jan 2015 07:21:18 +0100
From: Takashi Iwai <tiwai@...e.de>
To: Mark Brown <broonie@...nel.org>
Cc: Lars-Peter Clausen <lars@...afoo.de>,
"alsa-devel@...a-project.org" <alsa-devel@...a-project.org>,
"Wang, Jiada (ESD)" <Jiada_Wang@...tor.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"lgirdwood@...il.com" <lgirdwood@...il.com>,
"Frkuska, Joshua" <Joshua_Frkuska@...tor.com>
Subject: Re: [alsa-devel] unload Audio drivers while playback stream is active case kernel crash
At Wed, 14 Jan 2015 16:34:15 +0000,
Mark Brown wrote:
>
> On Wed, Jan 14, 2015 at 02:01:33PM +0100, Takashi Iwai wrote:
> > Mark Brown wrote:
>
> > > > Above all, disallowing the module unload while using is the common
> > > > behavior of any other drivers. Why do we have to be a rebel against
> > > > all civil manner? :)
>
> > > That's not true for everything
>
> > Hmm, which driver does behave so intentionally? I'm interested in the
> > supposed reason behind it.
>
> Relatively few of the subsystems in drivers have references to
> module_get().
Time flys... At the time of Linux 2.2 kernels, it was fairly common
to run a regular auto-cleanup of unused modules via cron running
"rmmod -a". Thus, each driver was mandated to deal with the module
refcount while used, or set it to -1 to avoid the auto-unload
permanently (like ipv6).
> > > and for ASoC I'd tend to assume that the
> > > user knows what they're doing and has a good reason for it; it's
> > > certainly something that can be helpful in development.
>
> > The module unload is never considered to be equivalent with hot
> > unplug It's more than that.
>
> I'm not sure that's the case from a user perspective.
Unloading a module means to remove the functionality. Unbinding is to
remove a device aka hotunplug. Conceptually totally different.
Takashi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists