Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1552831pxb; Thu, 28 Oct 2021 06:00:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsG9RP9+Nx1pzk5DuC4zEfUVOcfIqjuRjGsGpPCJguwqnqandIL5JWaQX3c+225WUgxAd2 X-Received: by 2002:a17:903:22c5:b0:140:298b:9e27 with SMTP id y5-20020a17090322c500b00140298b9e27mr3834314plg.23.1635426011879; Thu, 28 Oct 2021 06:00:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635426011; cv=none; d=google.com; s=arc-20160816; b=Ij3UsCTr6SnHA/mLe3E2/THwdhRzXpWd6esZXQna5Xl5j2y3UreP3n/IDMYCVzRyyB 9/d4eiHhGXomtkfp4BgVl2/WeKdDch6nn12KvC/aSsNN03s+r3lRpeWu95/fm5nGWyB5 d+lYoGJjWTLImqSPuxkXD/KjdoA3QzoGE320EC2wYMVfw6WPy51Vr5NOAySeVCpiE19O O3DLH0WjUCJpSJGWAgy2ZKJqRBV8pEyMbyVVojaRUav6/2UWZZgSBghCJe/Lz63XgFzy GTR25J9rNRdVzyjvkW2/Jl/P3XgIg8KtH4ctI2ui1DF260xc7OTnbegqohRm+Vm6OuhS qKJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=RLyubtvxjGpeEnTLp10d70mgW+REwGQNEyC836W4VCQ=; b=ss8BBf6gxa0J/4p4EoXtbDhEznrvv75/N9desoYY7Ft8UvMyztHKJGu4+YTjiSPN90 rJWeYhTsWkQLBXU2pAJo2w/deFDOI3JA+bhGGWLHfZ9gvNmSvhQROdEuTAk4yyfsI90Q 0h83NGD5XQrg+DbWjYr7EXm4aC97dMKcbbouQxmgAyxyT4m33UEV8fEDKHEAgs1RCbXy ifzsI8JUuLY68jsZoHCFEFUhmQNQcTDZuipvogbHt+eniDYxYJ05CSnNYI9SRIp2Pau0 VserTvAUizpMxTxC8NXGFOLv8LDYoSPPjaOugoNlJpzaWLA/u5tK30fJHJm4/myIIEgE vs/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=A99wx56C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l19si4316416pfu.149.2021.10.28.05.59.47; Thu, 28 Oct 2021 06:00:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=A99wx56C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230093AbhJ1NAe (ORCPT + 99 others); Thu, 28 Oct 2021 09:00:34 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:42743 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230157AbhJ1NAd (ORCPT ); Thu, 28 Oct 2021 09:00:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635425885; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=RLyubtvxjGpeEnTLp10d70mgW+REwGQNEyC836W4VCQ=; b=A99wx56CIC7XvsX+kehqYGxvlAWdI6kzbAm4rBQwQOU/FLApGPxmcfdCu0WyYNst90kAKz hAWm5Il9mG6dLBi4gVE8iGDkGTjcNsdmBYoz3V3xBMm6u/xQbd64vgIelrHSl4SEIloyMC gVmFcO4ddumLoIQ5xzmjUcOa5w8nlNk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-188-kqPdrAPOPdC5wC-EgQAYiA-1; Thu, 28 Oct 2021 08:58:02 -0400 X-MC-Unique: kqPdrAPOPdC5wC-EgQAYiA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 14DAA19067F2; Thu, 28 Oct 2021 12:57:45 +0000 (UTC) Received: from localhost (ovpn-8-40.pek2.redhat.com [10.72.8.40]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4D6C65D9DE; Thu, 28 Oct 2021 12:57:43 +0000 (UTC) From: Ming Lei To: Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Petr Mladek , live-patching@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Luis Chamberlain , Ming Lei Subject: [PATCH 0/3] livepatch: cleanup kpl_patch kobject release Date: Thu, 28 Oct 2021 20:57:31 +0800 Message-Id: <20211028125734.3134176-1-ming.lei@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, The 1st patch moves module_put() to release handler of klp_patch kobject. The 2nd patch changes to free klp_patch and other kobjects without klp_mutex. The 3rd patch switches to synchronous kobject release for klp_patch. Ming Lei (3): livepatch: remove 'struct completion finish' from klp_patch livepatch: free klp_patch object without holding klp_mutex livepatch: free klp_patch object synchronously include/linux/livepatch.h | 2 -- kernel/livepatch/core.c | 63 +++++++++++++++-------------------- kernel/livepatch/core.h | 3 +- kernel/livepatch/transition.c | 23 +++++++++---- kernel/livepatch/transition.h | 2 +- 5 files changed, 46 insertions(+), 47 deletions(-) -- 2.31.1