Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2345102pxy; Sun, 2 May 2021 19:47:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwgCKbhgcfo7reUOSy10/M7RB82ukxlkbSz7VbxNUt6NwhPOR7T898Uy+yKKqAbbVjVv1K X-Received: by 2002:a17:906:4d11:: with SMTP id r17mr14576211eju.217.1620010068776; Sun, 02 May 2021 19:47:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620010068; cv=none; d=google.com; s=arc-20160816; b=koJBH12n16WhryrDaJrCCV/qiMiH1H7Ixdg93cKD38UMfA35pHuRgS31vgEP+NljXQ Vxxs7bQGxgn65lND2zhG618mErRyQzJtMUMYaz2YeTN038oYHesgwNk/M/ymBvWn/bSP XW8qUTVi9z9TeMEp/BUxEKNIDlf2s6U11gKA3/5XS4tUAzsJcuoCXBrvZaVEZyeA9+Df N8UsUysuDm+lMfxVvsVYda5PUPVXYALa66CruAGIxL5mjgcwdGiFVZIC75CVsbfzBj5X 8sA65vsZf0ThjbzEmJ5czvR1pfwrh6S5lc/bVkYxqb9RMOUr9sHqiNiN48TzMjJYs7KJ 0EdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Yq2SoMKF5NSc9h196edvwexRO/GMH0hpcZYPOw71y68=; b=ro1Z6pCMznKb9a1Fk0avI8n109diAOty6T2vun3Z2Qzk7H9P93DANrJ8cfqggG40t9 bgBd1yBqLOW9Pw/NKDGHCF+HnqJkT3TvyzeluU05VO+7QV3CVatxAu6vEPJ8dFZ2dIio +63iBz1luHUU4r/sTnTiicxflZPgLqzEK921gqK7CaTETs+uVq9NsnvXqXyvxagBW3Z7 GEzT8Ad8fV8rJbeytQvRnEmcKUoLt4xNL9FyrYGSMWJFMPJdocnMLFM59z0AVn7FxBp3 fk6f6odYEM8i6tUTp5eBHlYMmNmU9njz1k8Pp9a6iW0btkKd6yO25OkBLdgqfgRauqDY CL4w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp21si8514915ejc.61.2021.05.02.19.47.25; Sun, 02 May 2021 19:47:48 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232540AbhECCrT (ORCPT + 99 others); Sun, 2 May 2021 22:47:19 -0400 Received: from mx2.suse.de ([195.135.220.15]:49722 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230368AbhECCrS (ORCPT ); Sun, 2 May 2021 22:47:18 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 3A58EAC86; Mon, 3 May 2021 02:46:25 +0000 (UTC) Date: Sun, 2 May 2021 23:46:22 -0300 From: Enzo Matsumiya To: Marek Behun Cc: linux-leds@vger.kernel.org, linux-block@vger.kernel.org, u.kleine-koenig@pengutronix.de, Jens Axboe , Pavel Machek , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 2/2] leds: trigger: implement block trigger Message-ID: <20210503024622.i55sne3dzqcnnezv@hyori> References: <20210430183216.27458-1-ematsumiya@suse.de> <20210430183216.27458-3-ematsumiya@suse.de> <20210430221121.46461c81@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210430221121.46461c81@thinkpad> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/30, Marek Behun wrote: >On Fri, 30 Apr 2021 15:32:11 -0300 >Enzo Matsumiya wrote: > >> Activity is then represented in an accumulated manner (part_read_stat_accum()), >> with a fixed blinking interval of 50ms. > >part_stat_read_accum, not part_read_stat_accum Good catch, will fix in v2. Thanks. >Why only accum? With the netdev trigger, you can choose whether rx, tx, >or both are blinking the LED. The original patch from Akinobu Mita could distinct between READ, WRITE, and DISCARD. My reasoning to not follow that was I've seen NICs with a TX and RX LED (i.e. netdev follows that), but I've never seen any disk activity indicator with separated LEDs for read and write, for example. So accum made sense to me. If this is really desired, I can come up with this, but I'd like to hear from others. >Also I think the trigger should be called "blockdev" instead of >"block". This is consistent with "netdev", and avoids misinterpretation >with the verb "to block". Thanks. I'll change this in v2. > >Marek Cheers, Enzo