Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp380535pxt; Wed, 4 Aug 2021 13:44:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAOPTirPn5OoWhCDoAx44L/GX3XLeMvicohoxHl/UxQPjGDAPjnHj8L3HaZ5ELn5RDY+S+ X-Received: by 2002:a05:6638:304a:: with SMTP id u10mr1290637jak.62.1628109874103; Wed, 04 Aug 2021 13:44:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628109874; cv=none; d=google.com; s=arc-20160816; b=xMkvHiKnh2uhU2pJvAmIJisUdXx7HT+uORjX/aCzTv9YW9BYw99bdOSUk9/HjPEwPD gCJFTwO1gSNzI08NCNLm8CAfpkRc0yZgoAPT5KteTBaUELdJ360yHkniapirB/+qE/7a yejlr9HaAtwfJHoDQzi5jVm6+sih5XCGl/rNcbNaocKtnfNkDkCJx2WRSgu+69AWINEz NWb68TE1zz8nk0y4MEopGg7iF7O70BmF5oAs38uWcyLL1lXK1+GTY/dTWGthdtZZWKsU KQ59oJxExhkSYgP/ysUlCJsAnqpdifC3oVB84x2BTon8edLa7+Y5wAGffnyoY12mZNuQ sDUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=f05KDrtHywJ7ptgF5rdbcaksmjyPJirEWKVIlatL5dQ=; b=ZbKetoTr/VPiTrcMmMz3XZzRaCLnXJ8ncTtiZ7gME3dv5RXKJT5OOc8JOKt8P/9B4B 33OZKjFnl4j/1kUILEBfwk1m367ildtIzvz9YeHiwvH4Fefsu+TFPxTAgOwWbtsu2Dzf tyPARRckdFwj3l1/uaT7+ut2sTRLuXqZX4fMa3pC65vX21d8rdrwLP+QtUtzh7+S4iuV Q6lYffJvj7uyCtlO/FQydI9UMHklX1XBIvA1X1ZkFlaRlbbicnf6lkcgACXGJquuzbBE m2xvFfAafK94uk/83LePTmXyBTQWeF2nhz4SyPyDy5dDFTRlO+qZdkIKqTSWllbqa6ui 6AvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=ZyInXTn6; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f14si3073027jar.87.2021.08.04.13.43.58; Wed, 04 Aug 2021 13:44:34 -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=@infradead.org header.s=bombadil.20210309 header.b=ZyInXTn6; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237474AbhHDR7O (ORCPT + 99 others); Wed, 4 Aug 2021 13:59:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237302AbhHDR7N (ORCPT ); Wed, 4 Aug 2021 13:59:13 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A080C0613D5; Wed, 4 Aug 2021 10:59:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=f05KDrtHywJ7ptgF5rdbcaksmjyPJirEWKVIlatL5dQ=; b=ZyInXTn6AUJn5/Nm0+ZZKIe/dw AIYzDU9oMm85lKCsFXkMZcLEI3tUpqtdDmQEr/f1FLo63q7sSG7yxzHzPHeamw2fd5QEIW+kizVE/ fDQroRDkJvmQlIlm10Mc0GOZw/s7LWS4ZxHksbo+s0OelZXS17g/C50ngyawEkK0B32reP/1udCWc vjC/nSD4k/XHMxKDH+TYvkmSc06J3qBTIJYkOnt05eBZag/g4x+hoCcQJznJkvMmO7qxb9WP+ej82 1RFeEdQmo8H1frJgEoOI91do5nV5KA2/btmeOW3q7NV3aZ7z3EW2idz/bF5bJUKwE7WWW6KGaxjA2 HWFhB1mQ==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBLAR-00771T-Fk; Wed, 04 Aug 2021 17:58:59 +0000 Date: Wed, 4 Aug 2021 10:58:59 -0700 From: Luis Chamberlain To: lucas.demarchi@intel.com, linux-modules@vger.kernel.org Cc: live-patching@vger.kernel.org, fstests@vger.kernel.org, linux-block@vger.kernel.org, hare@suse.de, dgilbert@interlog.com, jeyu@kernel.org, osandov@fb.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] libkmod-module: add support for a patient module removal option Message-ID: References: <20210803202417.462197-1-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210803202417.462197-1-mcgrof@kernel.org> Sender: Luis Chamberlain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 03, 2021 at 01:24:17PM -0700, Luis Chamberlain wrote: > + diff --git a/libkmod/libkmod-module.c b/libkmod/libkmod-module.c <-- snip --> > + ERR(mod->ctx, "%s refcnt is %ld waiting for it to become 0\n", mod->name, refcnt); OK after running many tests with this I think we need to just expand this so that the error message only applies when -v is passed to modprobe, otherwise we get the print message every time, and using INFO() doesn't cut it, given the next priority level available to the library is LOG_INFO (6) and when modprobe -v is passed we set the log level to LOG_NOTICE (5), so we need a new NOTICE(). I'll send a v2 with that included as a separate patch. Luis