Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752816AbdHOJAa (ORCPT ); Tue, 15 Aug 2017 05:00:30 -0400 Received: from mx2.suse.de ([195.135.220.15]:38993 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751608AbdHOJA2 (ORCPT ); Tue, 15 Aug 2017 05:00:28 -0400 Date: Tue, 15 Aug 2017 11:00:26 +0200 (CEST) From: Miroslav Benes To: Joe Lawrence cc: live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Josh Poimboeuf , Jessica Yu , Jiri Kosina , Petr Mladek , Chris J Arges Subject: Re: [PATCH v2 0/1] add (un)patch callbacks In-Reply-To: <1502220967-21410-1-git-send-email-joe.lawrence@redhat.com> Message-ID: References: <1502220967-21410-1-git-send-email-joe.lawrence@redhat.com> User-Agent: Alpine 2.20 (LSU 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 931 Lines: 28 On Tue, 8 Aug 2017, Joe Lawrence wrote: > Hi folks, > > This is v2 of the livepatch (un)patch hook/notifier/callback/etc code. > > The documentation is still a little rough, but I wanted to post up the > code for feedback before getting too far in revising it. > > This implements the pre and post handlers as Josh suggested. See > summary of related changes below... > > v2: > - s/hooks/callbacks/g > - implemented pre-(un)patch and post-(un)patch callbacks > - pre-patch and pre-unpatch callbacks run from callers of > klp_patch_object() and klp_unpatch_object() > - post-patch and post-unpatch callbacks run from > klp_complete_transition() and klp_module_coming/going() > - reduce callbacks from a list to a single per-klp_object instance > - revamp the sample callback demo > - revamp documentation > > Feedback appreciated as always. Looks almost good to me. v3 with Josh's review should be ok. Miroslav