From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01F01C43219 for ; Fri, 3 May 2019 13:26:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D27CE20C01 for ; Fri, 3 May 2019 13:26:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727795AbfECN0i (ORCPT ); Fri, 3 May 2019 09:26:38 -0400 Received: from mx2.suse.de ([195.135.220.15]:59760 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726679AbfECN0i (ORCPT ); Fri, 3 May 2019 09:26:38 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id ED350AE84; Fri, 3 May 2019 13:26:36 +0000 (UTC) From: Petr Mladek To: Jiri Kosina , Josh Poimboeuf , Miroslav Benes Cc: Joe Lawrence , Kamalesh Babulal , "Tobin C . Harding" , Greg Kroah-Hartman , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Petr Mladek Subject: [PATCH 0/2] livepatch: Remove custom kobject state handling and duplicated code Date: Fri, 3 May 2019 15:26:23 +0200 Message-Id: <20190503132625.23442-1-pmladek@suse.com> X-Mailer: git-send-email 2.16.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tobin's patch[1] uncovered that the livepatching code handles kobjects a too complicated way. The first patch removes the unnecessary custom kobject state handling. The second patch is an optional code deduplication. I did something similar already when introducing the atomic replace. But it was not considered worth it. There are more duplicated things now... [1] https://lkml.kernel.org/r/20190430001534.26246-1-tobin@kernel.org Petr Mladek (2): livepatch: Remove custom kobject state handling livepatch: Remove duplicated code for early initialization include/linux/livepatch.h | 3 -- kernel/livepatch/core.c | 86 ++++++++++++++++++++--------------------------- 2 files changed, 37 insertions(+), 52 deletions(-) -- 2.16.4