Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp89565pxf; Wed, 10 Mar 2021 00:56:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwB/NCQ07SklcqQCwak0bF31as+4fbZzXUQ12hKutgqYw1pYjGaPQLfVdseLru8xqeN85up X-Received: by 2002:a17:907:1693:: with SMTP id hc19mr2531742ejc.28.1615366582429; Wed, 10 Mar 2021 00:56:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615366582; cv=none; d=google.com; s=arc-20160816; b=NbElrpK1ZWCOTUp4BBLdD73Obf4KdwV1uiIqR3rfxmoY+UQcgUdcDDnTEFDKXrJbxP jFOQKGt7aSQzQ2jxV3ZT540pLudbwCOXmYwLcEa+EcoWZ6Okh3AQOcs9SqFwPZC0X0Em W99GaxGcd5TkNRxxmWGtCSfEDLXsxtlkGdXlTV/I6yeGyIkp5IIrfndnqDIPNBPAs0eS bErwFxGWJtHeRCa1v8Q3LhretzqBOeBiv2wtUyhz6h0zs9+gTtEQfZlqQgiZLxehoqqB HRxLCbiuay9DdKxQBLCYIbSF5bokWVBHez9fLyNe0XhPC6MeZHwWN9/i4dNrwseUHRcd wzOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=T+Ghs4tzH8mHruT6jqf6obYcoqa3oY9ausYnQChXhvs=; b=fSCxSGyBpddgL9ZjWtmEwG5sPQpy9zFSU2RSJEbTnig0xz6C8D/bokP0utOaI43Fqm JRPdFLySPWI5reKA837Oie+8SVM2R1I5LHCN1kz5WIBwwatopM6sWUhHqziFlLuHC0NT aBHlwUKhMY/it6o14Rlz3Vw2Lcq75XIlWZpJMXLs/H1Fi9Y8QBupjietx3MhNUIT1VOJ hn9OhrQIvDvA+wmUEHtvl6WtPhtbHxHyk1sdHCFc7QvnV1qpnMhv/8vi4hYb3ffnL2ry JmgUFKkSPtdBToSFbPZ9vAdOvsoYa2DURkxbejUqT6FEruEqFG49+CARSMAK5i8BkYrd dB2Q== 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 pk25si11528463ejb.402.2021.03.10.00.55.59; Wed, 10 Mar 2021 00:56:22 -0800 (PST) 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 S232482AbhCJIym (ORCPT + 99 others); Wed, 10 Mar 2021 03:54:42 -0500 Received: from frasgout.his.huawei.com ([185.176.79.56]:2674 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229688AbhCJIye (ORCPT ); Wed, 10 Mar 2021 03:54:34 -0500 Received: from fraeml704-chm.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4DwQhy5LHPz67xN2; Wed, 10 Mar 2021 16:48:34 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml704-chm.china.huawei.com (10.206.15.53) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2106.2; Wed, 10 Mar 2021 09:54:32 +0100 Received: from [10.47.10.208] (10.47.10.208) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2106.2; Wed, 10 Mar 2021 08:54:31 +0000 Subject: Re: [RFC PATCH v3 3/3] blk-mq: Lockout tagset iterator when exiting elevator To: Bart Van Assche , , , , CC: , , , , References: <1614957294-188540-1-git-send-email-john.garry@huawei.com> <1614957294-188540-4-git-send-email-john.garry@huawei.com> <48a3cf78-3f6d-c13c-bca2-1f8277817b45@acm.org> <9c9360bf-7ca9-5c8f-c61d-441044f9c78f@huawei.com> <784a3686-cb54-561d-740c-30e0b3f46df8@acm.org> From: John Garry Message-ID: Date: Wed, 10 Mar 2021 08:52:15 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.10.208] X-ClientProxiedBy: lhreml705-chm.china.huawei.com (10.201.108.54) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/03/2021 19:21, Bart Van Assche wrote: > On 3/9/21 9:47 AM, John Garry wrote: >> This does fall over if some tags are allocated without associated >> request queue, which I do not know exists. > Hi Bart, > The only tag allocation mechanism I know of is blk_mq_get_tag(). The > only blk_mq_get_tag() callers I know of are __blk_mq_alloc_request() and > blk_mq_alloc_request_hctx(). So I think all allocated tags are > associated with a request queue. > ok, good. > Regarding this patch series, I have shared the feedback I wanted to > share so I would appreciate it if someone else could also take a look. > So I can incorporate any changes and suggestions so far and send a non-RFC version - that may get more attention if none extra comes. As mentioned on the cover letter, if patch 2+3/3 are accepted, then patch 1/3 could be simplified. But I plan to leave as is. BTW, any issue with putting your suggested-by on patch 2/3? Thanks, John