From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933081AbcBAOsN (ORCPT ); Mon, 1 Feb 2016 09:48:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:32840 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932839AbcBAOsM (ORCPT ); Mon, 1 Feb 2016 09:48:12 -0500 Date: Mon, 1 Feb 2016 08:48:10 -0600 From: Josh Poimboeuf To: Jiri Kosina Cc: Steven Rostedt , Miroslav Benes , Jessica Yu , Seth Jennings , Vojtech Pavlik , Ingo Molnar , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Rusty Russell Subject: Re: [PATCH 1/2] livepatch: Implement separate coming and going module notifiers Message-ID: <20160201144810.GE22854@treble.redhat.com> References: <20160129173010.GA19101@treble.redhat.com> <20160129124014.204020ed@gandalf.local.home> <20160129175834.GB19101@treble.redhat.com> <20160129142950.0f6a6e62@gandalf.local.home> <20160129194715.GD19101@treble.redhat.com> <20160129150823.14a5d17e@gandalf.local.home> <20160129201534.GE19101@treble.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 01, 2016 at 01:27:57PM +0100, Jiri Kosina wrote: > On Fri, 29 Jan 2016, Josh Poimboeuf wrote: > > > Right, as you say it's basically a nop 99.99% of the time. But we still > > need to do the "are any patches loaded" check, so we still need the call > > into a livepatch function to do that. > > We might create a static key for that (some might call it > over-optimization though, given it's happening on kind of a slow path > anyway). I really don't think that's needed. Nobody will notice an extra function call in the module load path. (And BTW it'll be slightly faster than today since it doesn't go through the notifier first.) -- Josh