From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: [RFC v2 3/6] kthread: warn on kill signal if not OOM Date: Mon, 22 Sep 2014 21:49:06 +0200 Message-ID: <20140922194906.GB9868@amd> References: <20140905174925.GA12991@mtj.dyndns.org> <20140909224143.GB3154@mtj.dyndns.org> <1410302783.13298.50.camel@jarvis.lan> <5762134.BLS0EbmNJd@dtor-glaptop> <1410465565.10549.19.camel@jarvis> <20140911202354.GA2598@core.coreip.homeip.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: James Bottomley , Tejun Heo , "Luis R. Rodriguez" , Lennart Poettering , Kay Sievers , Greg Kroah-Hartman , Wu Zhangjin , Takashi Iwai , Arjan van de Ven , "linux-kernel@vger.kernel.org" , Oleg Nesterov , hare@suse.com, Andrew Morton , Tetsuo Handa , Joseph Salisbury , Benjamin Poirier , Santosh Rastapur , One Thousand Gnomes , Tim Gardner , Pierre Fersing , Nagalakshmi Nandigama Return-path: Content-Disposition: inline In-Reply-To: <20140911202354.GA2598@core.coreip.homeip.net> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Thu 2014-09-11 13:23:54, Dmitry Torokhov wrote: > On Thu, Sep 11, 2014 at 12:59:25PM -0700, James Bottomley wrote: > > > > On Tue, 2014-09-09 at 16:01 -0700, Dmitry Torokhov wrote: > > > On Tuesday, September 09, 2014 03:46:23 PM James Bottomley wrote: > > > > On Wed, 2014-09-10 at 07:41 +0900, Tejun Heo wrote: > > > > > > > > > > The thing is that we have to have dynamic mechanism to listen for > > > > > device attachments no matter what and such mechanism has been in place > > > > > for a long time at this point. The synchronous wait simply doesn't > > > > > serve any purpose anymore and kinda gets in the way in that it makes > > > > > it a possibly extremely slow process to tell whether loading of a > > > > > module succeeded or not because the wait for the initial round of > > > > > probe is piggybacked. > > > > > > > > OK, so we just fire and forget in userland ... why bother inventing an > > > > elaborate new infrastructure in the kernel to do exactly what > > > > > > > > modprobe & > > > > > > > > would do? > > > > > > Just so we do not forget: we also want the no-modules case to also be able > > > to probe asynchronously so that a slow device does not stall kernel booting. > > > > Yes, but we mostly do this anyway. SCSI for instance does asynchronous > > scanning of attached devices (once the cards are probed) > > What would it do it card was a bit slow to probe? > > > but has a sync > > point for ordering. > > Quite often we do not really care about ordering of devices. I mean, > does it matter if your mouse is discovered before your keyboard or > after? Actually yes, I suspect it does. I do evtest /dev/input/eventX by hand, occassionaly. It would be annoying if they moved between reboots. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html