Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp996532pxb; Thu, 19 Aug 2021 17:03:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyo6de7cAf/QbWN2JM8pcgk6gnqj3KfVp9nQcyGT0NB+zNg3Ibia/B80hsR4uFSGWYgADlv X-Received: by 2002:a17:906:f11:: with SMTP id z17mr19014545eji.385.1629417787658; Thu, 19 Aug 2021 17:03:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629417787; cv=none; d=google.com; s=arc-20160816; b=y1gtw9oBPZe3oitjkAJ8Cmr4OPIB535VQaasUjHdpkYOYF+SAQYJc93RIzY/4wyb2K baqZ3VE/7PM4vgOFwkRoN7/pLkrbNvBqUBMYeX5p4NXL2UYUOZCZsrkcX4PtW2EF04ZM Cdov4/M1bXap+qCmys86VESKlq7P7m9mGuJzRiwikMRULI2G6G9y7Sn1KmBo7YpNg72M QHM2IB2kLNXYBk4m/+uzgcZWwaF72dCkJdPj+wxpHehGejtDyne7cjwxt1WSvBkzJE2t Jk/6HvpysINZPBWwBxW9sgmE8TO7BZ/ukMGzq9ydgRja2ezd4V90+iRXbs1w5IiHwLNh MooQ== 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=ysAt0qOVkqX0b1YBP0DRQAcUuHGsRwUySI/CHhqjRbo=; b=ZFXJe/SbpuMjKu0qoSZynPrRhG31FcGuLVxJaZCVz9hSz523yZTwIrQdHZftTpKEcX fmjH9+oaXl195SgedLhdCD8HB6555+tzixxJKER5+SzJBbOpRP3ymTk4R46OuowtLGge xyJbh7+ljbU3OdIfWrYUV4SHILY8bMeizkiz6I2+K4lLcIYL84cwt9qlUymhjX2I9Bkp gvyE42DvUuWQDD+pA1EAS9YwAm23ia61tUwJpPGWiPuZ+upq7jt74+3Su526FBIym+cA W//y8ZTglhU7xiw5tI53VZ9uK5M21NA6EA6B3yJjqZuLAcDsDY+Tz4vJBbjIpEU9CbJ7 0Jyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=vd9CEefN; 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 x4si4450240ejv.319.2021.08.19.17.02.39; Thu, 19 Aug 2021 17:03:07 -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=vd9CEefN; 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 S236732AbhHSX7d (ORCPT + 99 others); Thu, 19 Aug 2021 19:59:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233370AbhHSX7d (ORCPT ); Thu, 19 Aug 2021 19:59:33 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5024DC061575; Thu, 19 Aug 2021 16:58:56 -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=ysAt0qOVkqX0b1YBP0DRQAcUuHGsRwUySI/CHhqjRbo=; b=vd9CEefNBQyCsStldq6Z6g2osU dHrLcAK8of6dQ6aa8VWDCFMuIj0IFZ/czQab0WoVeE9dby0kEcvOsAAViwiLHTj/58fZWSrjsIq6p 4odimVrW71Y6eKzNfq+Md18lSM/DraMnP6frgztMO5XzfwmzHcswMyp+wh91AaHlLo7JVoXZAXCsf hPSaLshCNjIxrgw/EPMnBhXS6TzNVwBorfAFloqWiFN99yo0Sl2asKnXniDmdw9xzba+HLhyCedTl 6oMp3SPxNCQ1Up+TB6fk53TnOx+eT+BNBw01Si47g9prY9yGynsNZNNkCkN2rUvzh+e39Z8WWg1Ue YvjA2ipw==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mGrvw-009mXO-C3; Thu, 19 Aug 2021 23:58:52 +0000 Date: Thu, 19 Aug 2021 16:58:52 -0700 From: Luis Chamberlain To: Eryu Guan Cc: Eryu Guan , fstests@vger.kernel.org, hare@suse.de, dgilbert@interlog.com, jeyu@kernel.org, lucas.demarchi@intel.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/3] common/module: add patient module rmmod support Message-ID: References: <20210811154512.1813622-1-mcgrof@kernel.org> <20210811154512.1813622-3-mcgrof@kernel.org> <20210819022644.GP60846@e18g06458.et15sqa> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210819022644.GP60846@e18g06458.et15sqa> Sender: Luis Chamberlain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 19, 2021 at 10:26:44AM +0800, Eryu Guan wrote: > On Wed, Aug 18, 2021 at 07:02:56AM -0700, Luis Chamberlain wrote: > > On Sun, Aug 15, 2021 at 08:29:42PM +0800, Eryu Guan wrote: > > > > > > Use "$max_tries -ne 0" to check inters seems better. > > > > max_tries can be "forever", in which case this is -eq 0: > > > > $ foo="forever"; if [[ $foo -eq 0 ]]; then echo buggy; else echo ok; fi > > buggy > > I see, that makes sense. Then perhaps some comments would help. I had sent out a v3 before seeing this request. I'll send a v4 with a comment clarifying this. Luis