From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37AEAC433EF for ; Mon, 25 Apr 2022 07:49:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240956AbiDYHw0 (ORCPT ); Mon, 25 Apr 2022 03:52:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241364AbiDYHwY (ORCPT ); Mon, 25 Apr 2022 03:52:24 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCEB0D0 for ; Mon, 25 Apr 2022 00:49:21 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 06AA868AA6; Mon, 25 Apr 2022 09:49:19 +0200 (CEST) Date: Mon, 25 Apr 2022 09:49:18 +0200 From: Christoph Hellwig To: Ming Lei Cc: Christoph Hellwig , Jens Axboe , linux-block@vger.kernel.org, Greg Kroah-Hartman , Shin'ichiro Kawasaki , Dan Williams , yukuai Subject: Re: [PATCH V2 2/2] block: fix "Directory XXXXX with parent 'block' already present!" Message-ID: <20220425074918.GA10320@lst.de> References: <20220423143952.3162999-1-ming.lei@redhat.com> <20220423143952.3162999-3-ming.lei@redhat.com> <20220423162937.GA28340@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Sun, Apr 24, 2022 at 05:24:12PM +0800, Ming Lei wrote: > > As the debugfs directory use the name of the gendisk, the lifetime rules > > should simply match those of the gendisk. If anyone wants to trace > > SCSI commands sent before probing the gendisk or after removing it > > they can use blktrace on the /dev/sg node. > > Not sure blktrace can trace on /dev/sg since blktrace works on > block_device. Unless someone broke it recently it does. Take a look at all the mess it causes in the blktrace code.