Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1553384pxb; Fri, 10 Sep 2021 08:24:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzH6e7P5UqaS8atfr0qpT2RY911OBqUrTU9KL+cHxyO6+RE45tDvwRhlirGfUh/NpdGtX/B X-Received: by 2002:a05:6602:2c05:: with SMTP id w5mr7656113iov.160.1631287443670; Fri, 10 Sep 2021 08:24:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631287443; cv=none; d=google.com; s=arc-20160816; b=DMjSBdAvXh+do6/vQp676E2AAANXa1+HjwuZHTJc1QNPNTqVCPw2g/66vtVLocRmvW GDidP1XSe+/8wjuGEGvQBJAYPHDKvGAQ1j0ud/S8/ZKCK13r3S088FWJNgjm35ZRRHsE ARkVmnfgc1wV9hpvWavYbmmoCu6Gy8ejflFx/NIOkO5A3XwhONjVntTGaN6wKsIy1dH4 YvYsjxu2r1wAzuTgVyMZ4KdeCoQIEtGB+YT/y7siT5YAP7+iwsqCVhQVK4nmPvnIirRG GpYNykP40LngMayxIxf5xrv2P+X7z/gZ26IVcbtjZ3eeO++hxlW9T0t7rKAcOREduDsJ mz3Q== 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:dkim-signature; bh=367CTEcCbscyZork7swn6VYWCbvVgVzp332FfQAIc98=; b=KgfIDUZnhD+52mo74BYcYyec6dXkDTa0rDmIG8HsmFrXnoN53u+txGNM0t87nfRUgn EPf4c/Np78Zs0wkXfRD98ox5thaqRFedflQ4dIVSJBVWthENDMhUBlvRJL1+wSKra67X cec2xcMjx4SEejx/Te5DW+o4B/b/4+3wyWck7VNMOcUFS5Xs7Ngqb+ysZGtSeSelD6Z/ 8NSAiQdzZkPvwUnwF3r8ijji+QJxuctcj0sZ0R8wol1/3gHfrSDUjmRGu9sQHqZvm8PU HYA9MUzSVcwABha5oi48xESQAJX7olJDRt7FtWYX4p7W1YarfwonA6vVYfZY8EK8+yug 0Jiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rzf4b2Af; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a2si4591504ilp.123.2021.09.10.08.23.50; Fri, 10 Sep 2021 08:24:03 -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=@linuxfoundation.org header.s=korg header.b=rzf4b2Af; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234334AbhIJPYQ (ORCPT + 99 others); Fri, 10 Sep 2021 11:24:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:52638 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234130AbhIJPYQ (ORCPT ); Fri, 10 Sep 2021 11:24:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 214F4611C5; Fri, 10 Sep 2021 15:23:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631287385; bh=f6IGIRfV123I4IcfOc4p0tfcPsKkBQX6eNQa6E4tcZQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rzf4b2AfXmMpJpcNbzfURmoGer7xDxR2DZjD4StBmP0Qd49F5YuGnL2Om9ijH28cV IUeVvtHQmzlxHNykZ2fN7Q+YbLw3oQfFH6n3kTLdMo9Tkq+OiqhL6CtF5Coa3BJgfp my13zyQ25DbCWWbKJ6RCQ+Gh30Hu0k623WG4Bvmc= Date: Fri, 10 Sep 2021 17:23:01 +0200 From: Greg KH To: Ian Pilcher Cc: axboe@kernel.dk, pavel@ucw.cz, linux-leds@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, kabel@kernel.org Subject: Re: [PATCH v2 06/15] leds: trigger: blkdev: Add function to get gendisk by name Message-ID: References: <20210909222513.2184795-1-arequipeno@gmail.com> <20210909222513.2184795-7-arequipeno@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 10, 2021 at 10:17:03AM -0500, Ian Pilcher wrote: > On 9/10/21 1:45 AM, Greg KH wrote: > > You now have bumped the reference count on this structure. Where do you > > decrement it when you are finished with it? > > That happens when I "unlink" the block device from the LED in > blkdev_disk_unlink_locked() at ledtrig-blkdev.c:410. I have no context here anymore, so I have no idea if this is really true :(