Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5931070pxv; Thu, 29 Jul 2021 01:57:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgUeZiyybQnw28a+0nRPHYiIcOhBWfPKUM9i4bolKc5O4a2SJyjLw6ZrRLBHjT9V6DARLx X-Received: by 2002:a05:6402:54f:: with SMTP id i15mr4943308edx.24.1627549028513; Thu, 29 Jul 2021 01:57:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627549028; cv=none; d=google.com; s=arc-20160816; b=LGHdCwBbklGHFW2xNyq+VeVUZnruST6PgL24GSYyDmWeJQcrHZOY4Nysd9zaP3saTt YOyEH+r85bVCkBYCSZqFZm+2lAS47p1nWHad4hJD6x52yIQC7wP7Y9nA7pUmxOWUVRPl UGWax8azGWjg80Rw6Vm6rV87dMiqCVTBwH7ZO80hXF3wCmCvNx4BGqrlMsW9xYX6Ofku 1VJrbZU4SDRqITBdy3epDZAamA/9aUqI0z0WJZF9E1oxxe9yVXRHJpIdaKgg4/05xDe9 Pv6C8j7J1ypvEOPLDPBtqOY7hE1uDadwznMoT8Htnbvuyg0NzIKKrJZ50dqyzAnZwEnY eVEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=E10RmIMOydPgN4uzYM7B8TVECTXS6KHWOoXH2BttAio=; b=A6lKdn6Z8cL3AALwLHetmHUZpCfwdhKRyQnfqto/eQrmlsJYBVBd2RsPAXSwZautwT RbVX1MVXl5K1qKda+9cHMprdlpPgoc2kvuC5YFRr6ifcb0qdOsJp4D9RCrhkYFcmdYU8 I4FnD3kcOSQHBc4tzpRMKFbFhy5L8Wu7ILysv6pnEcqwekIWnjVAlJ6d6fy+WWSM/V8Z vTsEoNktOKqxm4UPK9NiMA303di5ZmQbNN8605ggWAaUy89ZBt6SyB4QwcXF1tKnQXoE 3HgWAl9Kzoqb01PBMaIHm+RF2RLmlhrwMpBAAlSOfUgBGDFnk1MvvjjtFbNb1w+Ue/NB 4IQg== 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 bf17si2228046edb.120.2021.07.29.01.56.45; Thu, 29 Jul 2021 01:57:08 -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 S235197AbhG2IyU (ORCPT + 99 others); Thu, 29 Jul 2021 04:54:20 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:32866 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235257AbhG2IyS (ORCPT ); Thu, 29 Jul 2021 04:54:18 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 411A81C0B79; Thu, 29 Jul 2021 10:54:14 +0200 (CEST) Date: Thu, 29 Jul 2021 10:54:13 +0200 From: Pavel Machek To: Ian Pilcher Cc: linux-block@vger.kernel.org, linux-leds@vger.kernel.org, axboe@kernel.dk, linux-kernel@vger.kernel.org, kernelnewbies@kernelnewbies.org Subject: Re: [RFC PATCH 0/8] Add configurable block device LED triggers Message-ID: <20210729085413.GA16945@amd> References: <20210729015344.3366750-1-arequipeno@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="T4sUOijqQbZv57TR" Content-Disposition: inline In-Reply-To: <20210729015344.3366750-1-arequipeno@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > This patch series adds configurable (i.e. user-defined) block device LED > triggers. >=20 > * Triggers can be created, listed, and deleted via sysfs block class > attributes (led_trigger_{new,list,del}). >=20 > * Once created, block device LED triggers are associated with LEDs just > like any other LED trigger (via /sys/class/leds/${LED}/trigger). >=20 > * Each block device gains a new device attribute (led_trigger) that can > be used to associate the device with a trigger or clear its > association. That's not how this is normally done. We normally have a trigger ("block device activity") which can then expose parameters ("I watch for read" and "I monitor sda1"). Is there a reason normal solution can not be used? Best regards, Pavel --=20 http://www.livejournal.com/~pavelmachek --T4sUOijqQbZv57TR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAmECbLUACgkQMOfwapXb+vL9tACgnOzb1KvTxmFtIJuKCic5ZIg/ y44AoKfmCU0r9lJBSrs3cIzBq6G/ZJhY =EPbJ -----END PGP SIGNATURE----- --T4sUOijqQbZv57TR--