Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4339260pxt; Wed, 11 Aug 2021 03:54:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3z5gtgVKd1tQNHQNKFDYCbxg5SIonGvXfByk0UZDVNVZ2k9reFAiOQ/CnrrJixmHjtRTt X-Received: by 2002:a17:907:1b02:: with SMTP id mp2mr3083839ejc.196.1628679259732; Wed, 11 Aug 2021 03:54:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628679259; cv=none; d=google.com; s=arc-20160816; b=Uh4YvVddAFQu6DlduRWnOwAFYUYM/FvvyqmHnq+1Bh0geUCO6V2cJGyi1309aJrnRk 3ZJTsgiNUlfy2Sdjk2rDJh1Xnwf57IBZLbPgMQgpISlzVyCpD7pHGRzPA5cDWSC7s/l9 +D1g5CJSTjNhmGZEyMPnY6IBNvkFhBx62g5gTh/xv3B/3tX5hDhC1Ewu3KDUc0QegnNJ Y+QRAO1mfrdI2R3mCqDvUAKkS8ZvkVfroY67jRjAhtSFvoUvm6OPqnb4HM+SCI1U23hp pEkstzB1k7eKwj4hxfMDZ8qjl6WtzfNGxtZvN+Jp0fDWoNLsSt/GEKLCfHD01Uld/lLZ 8l9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=EyqUUUveEiVhJFdKAhlVfiaaT1sbSqTSvLygJy+auFU=; b=aCl0G4TbCcnjYwDlmyH+p1y7F53GJ4CG3lLH0UKzgwI6Kf9wstQKblCuacS8oqMorW wbsP2LVzDJSXKW77uhSzWP0Lf89rCfO2Nw0/xuw/ID++l5rGulIsnWT/YxR8f2YQKBNK kQwASVCGhtyLtP8V7vI5UrqCzXHN2NzqEmEh25JZLIB7+BYWGUcvlz1+0F/l5PoB7uvf CoQckakXQfoH7eM6twXeY9uBdqP0swc0AV0290Nwxi+AH1il1DOkgW6hnTb8QVy4xkf1 U704NAVp3ZT9+wP/gyk+/da6LKnKSipyn+Kkzhm9FUT7dCNQqWWLk94doifIcravXhmp y3OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=m7xjOa9y; 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 w4si22274157edd.535.2021.08.11.03.53.55; Wed, 11 Aug 2021 03:54:19 -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=@kernel.org header.s=k20201202 header.b=m7xjOa9y; 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 S237190AbhHKKvk (ORCPT + 99 others); Wed, 11 Aug 2021 06:51:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:35954 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237180AbhHKKvj (ORCPT ); Wed, 11 Aug 2021 06:51:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5157B60E78; Wed, 11 Aug 2021 10:51:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628679076; bh=rH5YRaOaWyAR5nRm148pL736R8MucsTyJdvhBT11OlI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=m7xjOa9y9J0xdu2uxFHvu2u5VOkNGxjIhzSUYBCzqjKIjFqxGuiAwMZqh2f98WFUL zp/7IaiGIy05+GMRATbgq4gW1dAKfGM40EA+YYbNuUv1ze/FivFhau/zYbQalQOs8D 4C1g1QVH6XiJeMuUbFlXxdBI9bCFs+OP5P4YmUd19VdNWf5rHSmowyakGLoqrGzGXy Hcm65dJKrqPHXuTlDe6Ky+2UHhHz7EM5yFl9a3OsIJdckrp7bbG/FbwXJHwsKTWcub zWvBnRfrmQo9yETjkAeKe/4v4gg3ok4tFaTqqQTlik7tUz/c6TnJrHmGAGEnUjAB48 EhB2MzyKb32eQ== Date: Wed, 11 Aug 2021 12:50:48 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Christoph Hellwig Cc: Ian Pilcher , Greg KH , pali@kernel.org, linux-block@vger.kernel.org, linux-leds@vger.kernel.org, axboe@kernel.dk, pavel@ucw.cz, linux-kernel@vger.kernel.org, kernelnewbies@kernelnewbies.org Subject: Re: [RFC PATCH v2 00/10] Add configurable block device LED triggers Message-ID: <20210811125048.3bbcebdb@thinkpad> In-Reply-To: <20210811062642.GA3119@lst.de> References: <20210809033217.1113444-1-arequipeno@gmail.com> <20210809205633.4300bbea@thinkpad> <81c128a1-c1b8-0f1e-a77b-6704bade26c0@gmail.com> <20210810004331.0f0094a5@thinkpad> <7b5f3509-5bcd-388b-8d3b-4ea95a9483ad@gmail.com> <20210811062642.GA3119@lst.de> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 11 Aug 2021 08:26:42 +0200 Christoph Hellwig wrote: > On Mon, Aug 09, 2021 at 06:50:44PM -0500, Ian Pilcher wrote: > > On 8/9/21 5:43 PM, Marek Beh=C3=BAn wrote: =20 > >> I confess that I am not very familiar with internal blkdev API. =20 > > > > It's mainly a matter of symbol visibility. See this thread from a few > > months ago: > > > > https://www.spinics.net/lists/linux-leds/msg18244.html > > > > Now ... my code currently lives in block/, so there isn't actually > > anything technically preventing it from iterating through the block > > devices. > > > > The reactions to Enzo's patch (which you can see in that thread) make me > > think that anything that iterates through all block devices is likely to > > be rejected, but maybe I'm reading too much into it. =20 >=20 > I think the main issue with this series is that it adds a shitload of > code and a hook in the absolute I/O fastpath for fricking blinkenlights. > I don't think it is even worth wasting time on something this ridiculous. That's why I think we should do this the way the netdev trigger does. Periodically reading block_device's stats, and if they are greater, blink the LED. Marek