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 X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 511A8C433DF for ; Sat, 20 Jun 2020 18:07:49 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 0500423F58 for ; Sat, 20 Jun 2020 18:07:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0500423F58 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=acm.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 43D688D000E; Sat, 20 Jun 2020 14:07:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3EEB38D0008; Sat, 20 Jun 2020 14:07:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2DB6B8D000E; Sat, 20 Jun 2020 14:07:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0175.hostedemail.com [216.40.44.175]) by kanga.kvack.org (Postfix) with ESMTP id 1213F8D0008 for ; Sat, 20 Jun 2020 14:07:48 -0400 (EDT) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id B9B841EE6 for ; Sat, 20 Jun 2020 18:07:47 +0000 (UTC) X-FDA: 76950373374.27.tub34_4b00c0c26e23 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin27.hostedemail.com (Postfix) with ESMTP id 936553D668 for ; Sat, 20 Jun 2020 18:07:47 +0000 (UTC) X-HE-Tag: tub34_4b00c0c26e23 X-Filterd-Recvd-Size: 6130 Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by imf40.hostedemail.com (Postfix) with ESMTP for ; Sat, 20 Jun 2020 18:07:47 +0000 (UTC) Received: by mail-pf1-f195.google.com with SMTP id z63so6153117pfb.1 for ; Sat, 20 Jun 2020 11:07:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=NzZdSjEt874a3GJH+7QELllYmmkWwmA69bmmuHgTAoc=; b=LkMLw0sPp4pr0mKD8pfl614X0/kqyXaF5cDQLJLMyiqv3bVfB80OBf+ZQraAXKgpBy 1A0o74mdkM2yBOuuYiGLjZU+vQ1c64pAnAmIO7ExgDMoK/uBJHMLF9lH9KpHsTTFlHfY K0e2s6whBtB/oRkc2zP4yUxT7D9P4Nk90g9f+54MdFQlfafYZixLHbO8Cttxyk6flpxG 4n6c9drYzPZoiknGYlgcoKWDCdGaqU6kkS+MTX7rlivqw9m8NXz669sgLD5+RyDE3RQa XjBGYowF0Q2aiSnhDeJe62OyY2Gjn7Tk6gPhwwcjnd9vlU+nJzMDbwHnSRWZW8CIPwWU qVng== X-Gm-Message-State: AOAM530zVqM5EwOorg1vVA59434V9cx/+Y+MjcXrGKLKmUNtcFMSwT4K 2eUEuFWOv59zBHiyAjJbpAI= X-Google-Smtp-Source: ABdhPJyXZ5+MX59b6ULR5gqIuxp5l3tCoeY0xbteLpJXFGzXJOEKGFgYUdAnj2qpGVZHCWN7S8ZLZw== X-Received: by 2002:a63:fa4d:: with SMTP id g13mr7185310pgk.26.1592676466144; Sat, 20 Jun 2020 11:07:46 -0700 (PDT) Received: from [192.168.50.147] (c-73-241-217-19.hsd1.ca.comcast.net. [73.241.217.19]) by smtp.gmail.com with ESMTPSA id s22sm2614781pgv.43.2020.06.20.11.07.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 20 Jun 2020 11:07:45 -0700 (PDT) Subject: Re: [PATCH v7 8/8] block: create the request_queue debugfs_dir on registration To: Luis Chamberlain , axboe@kernel.dk, viro@zeniv.linux.org.uk, gregkh@linuxfoundation.org, rostedt@goodmis.org, mingo@redhat.com, jack@suse.cz, ming.lei@redhat.com, nstange@suse.de, akpm@linux-foundation.org Cc: mhocko@suse.com, yukuai3@huawei.com, martin.petersen@oracle.com, jejb@linux.ibm.com, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20200619204730.26124-1-mcgrof@kernel.org> <20200619204730.26124-9-mcgrof@kernel.org> From: Bart Van Assche Autocrypt: addr=bvanassche@acm.org; prefer-encrypt=mutual; keydata= mQENBFSOu4oBCADcRWxVUvkkvRmmwTwIjIJvZOu6wNm+dz5AF4z0FHW2KNZL3oheO3P8UZWr LQOrCfRcK8e/sIs2Y2D3Lg/SL7qqbMehGEYcJptu6mKkywBfoYbtBkVoJ/jQsi2H0vBiiCOy fmxMHIPcYxaJdXxrOG2UO4B60Y/BzE6OrPDT44w4cZA9DH5xialliWU447Bts8TJNa3lZKS1 AvW1ZklbvJfAJJAwzDih35LxU2fcWbmhPa7EO2DCv/LM1B10GBB/oQB5kvlq4aA2PSIWkqz4 3SI5kCPSsygD6wKnbRsvNn2mIACva6VHdm62A7xel5dJRfpQjXj2snd1F/YNoNc66UUTABEB AAG0JEJhcnQgVmFuIEFzc2NoZSA8YnZhbmFzc2NoZUBhY20ub3JnPokBOQQTAQIAIwUCVI67 igIbAwcLCQgHAwIBBhUIAgkKCwQWAgMBAh4BAheAAAoJEHFcPTXFzhAJ8QkH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D4IGei3MTdvINSZI5e Message-ID: <02112994-4cd7-c749-6bd7-66a772593c90@acm.org> Date: Sat, 20 Jun 2020 11:07:43 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200619204730.26124-9-mcgrof@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 936553D668 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam03 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 2020-06-19 13:47, Luis Chamberlain wrote: > We were only creating the request_queue debugfs_dir only > for make_request block drivers (multiqueue), but never for > request-based block drivers. We did this as we were only > creating non-blktrace additional debugfs files on that directory > for make_request drivers. However, since blktrace *always* creates > that directory anyway, we special-case the use of that directory > on blktrace. Other than this being an eye-sore, this exposes > request-based block drivers to the same debugfs fragile > race that used to exist with make_request block drivers > where if we start adding files onto that directory we can later > run a race with a double removal of dentries on the directory > if we don't deal with this carefully on blktrace. > > Instead, just simplify things by always creating the request_queue > debugfs_dir on request_queue registration. Rename the mutex also to > reflect the fact that this is used outside of the blktrace context. There are two changes in this patch: a bug fix and a rename of a mutex. I don't like it to see two changes in a single patch. Additionally, is the new mutex name really better than the old name? The proper way to use mutexes is to use mutexes to protect data instead of code. Where is the documentation that mentions which member variable(s) of which data structures are protected by the mutex formerly called blk_trace_mutex? Since the new name makes it even less clear which data is protected by this mutex, is the new name really better than the old name? Thanks, Bart.