From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Luis R. Rodriguez" Subject: Re: [RFC v2 3/6] kthread: warn on kill signal if not OOM Date: Mon, 8 Sep 2014 20:19:12 -0700 Message-ID: References: <20140909011059.GB11706@mtj.dyndns.org> <20140909012227.GE11706@mtj.dyndns.org> <20140909012933.GF11706@mtj.dyndns.org> <20140909014754.GG11706@mtj.dyndns.org> <20140909023943.GH11706@mtj.dyndns.org> <20140909030353.GI11706@mtj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Lennart Poettering , Kay Sievers , Dmitry Torokhov , 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 , Praveen Krishnamoorthy , Sreekanth Redd To: Tejun Heo Return-path: In-Reply-To: <20140909030353.GI11706@mtj.dyndns.org> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Mon, Sep 8, 2014 at 8:03 PM, Tejun Heo wrote: > On Mon, Sep 08, 2014 at 07:57:28PM -0700, Luis R. Rodriguez wrote: >> > I think we >> > just should make exceptions sensible so that it works fine in practice >> > for now (and I don't think that'd be too hard). So, the only >> > cooperation necessary from userland would be just saying "I don't >> > wanna wait for device probing on module load." >> >> But we're talking about drivers that have a flag that says 'you gotta >> wait sucker', what do we want systemd to do then? I'd be happy if it'd >> would not send the sigkill for these drivers, for example. > > Hah? Can you give me an example? I'm having hard time imagining a > driver with such requirement given our current driver core > implementation. I didn't say I had one in mind, but if you're certain these *shouldn't exist* that's sufficient by me as well. OK so I'll respin this series to enable a sysctl that would enable async probe for *all drivers* using queue_work(system_unbound_wq) and only use sync probe for now on request_module() users, we'll address scheduling issues as they come up. I'll be ignoring built-in. On the systemd side of things it should enable this sysctl and for older kernels what should it do? Luis