Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1032150iog; Thu, 30 Jun 2022 15:34:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1veuaNXcs2/mM4ZyAYk3M0Ytm3UhrGo2JWqrQD9lTVgF6lboZx/frLjwfUMayEghLl1b005 X-Received: by 2002:a63:28c:0:b0:3c1:6f72:7288 with SMTP id 134-20020a63028c000000b003c16f727288mr9478038pgc.564.1656628447110; Thu, 30 Jun 2022 15:34:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656628447; cv=none; d=google.com; s=arc-20160816; b=x1h1SQtlpuY2Q1xOGX4eHCCObIt5F2p8kNLZ7zptjnwcA/ir9GhsZ8FMy2bgfIkaJ5 DDQATCqn3qGeV0+8itHnbrk2PLAbn6L7l22vjIuzacvcFUsKdLDwPpsjY/Mt4v6hH8Xp wuJ4j8zBN8zq6ZYgcRO0vhTOaKhtbFtfMcD11PI6oyUszldLBN4EULZNm814HggWJSOq W4eGvGPdIdKb5u6zpi5OVypzKb+A27l1B3WoW2dAXzOqO0VEdDpBLtt165PFC/Url8p5 6c1ognb4zpeNDCkHjNMaZQPjTELOjWIgqp4jZHSAZsKEsuA34iiPQCv2pilUWMUc2jxG Ittg== 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=Tb7xc4sH1KrEahBlbDzaoJzaNufCKqUnLt5CgcUm9SE=; b=kEO7TFwN6nOo9YpheFfAIJH7rzlDW6oza8YXgD89Jb/IM45rWjZpvF1C4fCjakyZPk ElIUtVSBA6QLmtv+DkTBsWCIw3K9gCCCQdLBUWf8Q960U7Ljw6lpE8EwXexGvh2VEPng l6qsD3rBipSlLv0YJQLqtTFsdDN5s2OH2+7oZ6TwL4QgDSXrGg0D0tpHaCCQTAoITgF1 ykMxtkV/NBbwqx69FeTobS3aeSsIaMapm2ljoom+/YZPbEMpYvn1XEdPbwrf+JRbclQc 9xOR8NNoay00UIBs00W+yWre/ynb8LZF2hGF0I8svtznke09cVxFW/mcBIPEOu62oRA9 GAew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=rc05lfPd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w15-20020a63f50f000000b0040ddd278f27si774345pgh.636.2022.06.30.15.33.54; Thu, 30 Jun 2022 15:34:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=rc05lfPd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229715AbiF3WJf (ORCPT + 99 others); Thu, 30 Jun 2022 18:09:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbiF3WJe (ORCPT ); Thu, 30 Jun 2022 18:09:34 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4023B50704; Thu, 30 Jun 2022 15:09:34 -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=Tb7xc4sH1KrEahBlbDzaoJzaNufCKqUnLt5CgcUm9SE=; b=rc05lfPd83uqKfhWazhXrh5rVm 7Nsk88URc5Sr95SF4omVfVbcV2SgUno9+YrPyMpVHKGKHu7OWrMQqudTTh674RmiF4T0Yd7weHtFQ 9/xJIQ6u9FG/bSyzGKo8q4SwKrPuIXdmGfZU3gjlOIASf+ZOB12AtMxRZFXs9slUc5No8Fr8RxmeP oV0K8271MWFd7koNzFYYMeAK1gWTS4vCT/nKaoYX8YnYfiUngeLPdRsXZPD1eNk6E2KTNAuSIAM4L 4ZTvJd383I5VygEQ6Jyo8gL8u/grSZ+w1wynE+8g8mn/nG6YIh/CH0zZG/7aJWuCi7Uum3t8+dRNR 3nQGo0VA==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1o72Ls-001lnX-TU; Thu, 30 Jun 2022 22:09:32 +0000 Date: Thu, 30 Jun 2022 15:09:32 -0700 From: Luis Chamberlain To: Lucas De Marchi Cc: linux-modules , lkml Subject: Re: [ANNOUNCE] kmod 30 Message-ID: References: <20220630153621.3fggpqrbyvunhwfu@ldmartin-desk2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220630153621.3fggpqrbyvunhwfu@ldmartin-desk2> Sender: Luis Chamberlain X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 30, 2022 at 08:36:21AM -0700, Lucas De Marchi wrote: > - modprobe learned a --wait option to be used together with -r > when removing a module. This allows modprobe to keep trying the > removal if it fails because the module is still in use. An exponential backoff > time is used for further retries. > > The wait behavior provided by the kernel when not passing O_NONBLOCK > to delete_module() was removed in v3.13 due to not be used and the > consequences of having to support it in the kernel. However there may > be some users, particularly on testsuites for individual susbsystems, that > would want that. So provide a userspace implementation inside modprobe for > such users. "rmmod" doesn't have a --wait as it remains a bare minimal over > the API provided by the kernel. In future the --wait behavior can be added > to libkmod for testsuites not exec'ing modprobe for module removal. Sorry for the super late review, I was swamped. OK so the only issue I can think of is that rmmod *used* to support the kernel wait support with $(rmmod --wait) so wouldn't this be odd? It is why I had gone with: -p | --remove-patiently patiently removes the module -t | --timeout timeout in ms to remove the module You would know better though. Also just curious, is it really terrible to just support waiting forever? Luis