Received: by 2002:ac0:a874:0:0:0:0:0 with SMTP id c49csp448902ima; Fri, 15 Mar 2019 06:32:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqyP3ihr1a5jwEKsNQ6oFMT7eOe8OXOizY12roYYoZ2lQyc8UCgIdb48UIHzJ2P3xpX/LxEj X-Received: by 2002:a63:e915:: with SMTP id i21mr3455321pgh.78.1552656767161; Fri, 15 Mar 2019 06:32:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552656767; cv=none; d=google.com; s=arc-20160816; b=WDY4XPcUrBTU+EzwuI3/Q0BonPIsSiIQu5w8l1rKx6rkaeWliscwl0PZeQ01LMlmV1 eJ2NYfcxc/rsocFz4Isds2hQE0Ps6OiDcLvTl7ZjInG7AX/eik4GQeSN/yBkfklympAE IXCD1vkaPkYznCdsr8VhwIg4JApvY6bOv49dQ6Uo/9HdojUpqFYtEsxM1EYrfkqtJ5el u4jpNLx5jYdibXJRVaZIRr4A08SFpKCzarQfH61DA6bJ2D093C1bc1F78IDVZ5IGWOG1 yN9O9C48JsXwa9kjU+w10sf6Mu0+8AH3QBH/MtZ4x2CtXvIfD0KskUSQ4UufN3GXb/rQ mG1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wN20U8IEsLh5RNTubrw2jQVkk1uGCIfHs0EfnmILUwo=; b=L7ktnuGVrMvQRV5C0iC2OwWtYzXrslUFIRtfv/VWC+l+apaMkHRqDAyoKIUYzhqmMX u+fsdzxNgOVfIBdKEFTxVJmVn1nRzc7p+vXOQ6jSoLFlufmFP4amfrD7GPMaeduBp4rh y5zBVpBppiNpY2yZ2Z/ryFuEhBdtw60YFPGhYV42dpt+B7Q7dLuZwpOlgyJayIlCuK7Y uq8lmJ7TkgV7In14KtIklLPf1MNylA1oTLcfF2uvj50Terg4zls+alBPmnBM5vL4iT/Q qhjtDKRWXCSlMvIZhh9KDwO0MCveDhZzs6kGNX40Ts/tGTC8subZw/sXQWDlplm6Vx8B FkrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=hDqAlN2F; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n14si1806732pgv.520.2019.03.15.06.32.31; Fri, 15 Mar 2019 06:32:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=hDqAlN2F; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729078AbfCONaV (ORCPT + 99 others); Fri, 15 Mar 2019 09:30:21 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:33035 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727587AbfCONaV (ORCPT ); Fri, 15 Mar 2019 09:30:21 -0400 Received: by mail-qt1-f196.google.com with SMTP id k14so4309051qtb.0 for ; Fri, 15 Mar 2019 06:30:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=wN20U8IEsLh5RNTubrw2jQVkk1uGCIfHs0EfnmILUwo=; b=hDqAlN2FFNw9E/cm85y3zwTUHBE+3/qKltYvD7P1DItMctcU264QY2NrOWTUhfEUL0 sxDxY5mXqC++3qobHhXG3vbtLla4ZU5fnny9kTF05Wsi9HBw3FV0ftQfIFH/0Y8+48XE QstsgiTaVZlElstNtwvFyopEAoDyT/6GLOYQSaRSSYHARXUv0IECrlVROudmTjllefDv 5EHFMqm29s6KN9UTfcGxcQptZyNDEm/L8AhtnDSWcfqHsJdg9kdVoa0F+n9zHaSkb6Lc 6hboOr6eftZoQazM2uCyTV3VOveJATUk5WoEuJior/Ej618+RZLeQO9ECtQrfm1AsIZm VS1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wN20U8IEsLh5RNTubrw2jQVkk1uGCIfHs0EfnmILUwo=; b=Jd11oI1529nWhr3mHq73zoiHrZpo7meCizd3znXEp64bffEjSGjoO/B0MgbzzW9WtE PsHjdNDdpWfBb+n4SyxIMAmMaibnVqQd9wULl1SsyGVtYVfblR9NPIMg2f/26C/vnism TbGci/n/L4LaUaWndMTGHJa/N2YclCpb7OykBJf548EpyWq2STsz2HA1vlG+U6Jeqv3S ytJ4V3JvEAPwEyAdZYqv/ddmIANAkL4eZxsxgd7pxvy5jOQn0lrDZFTStB8g1FnC4P5B MTUsoIVcbcVlVciis0q1NU5ijfLez7QLW2Vj68IbYx/mHRer2x7pp9cU2pBZcHL9iVI1 rj2Q== X-Gm-Message-State: APjAAAWmZDxFc4Kl/KlPW5teYfhJo/d7RYQ7cReXCce614448yIqiekD lUJWmGFCyxfsqFukEgVIZMmlmR4rC1HKQTdd X-Received: by 2002:ac8:2427:: with SMTP id c36mr2857627qtc.124.1552656620302; Fri, 15 Mar 2019 06:30:20 -0700 (PDT) Received: from localhost ([107.15.81.208]) by smtp.gmail.com with ESMTPSA id y2sm1435840qty.63.2019.03.15.06.30.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Mar 2019 06:30:19 -0700 (PDT) Date: Fri, 15 Mar 2019 09:30:18 -0400 From: Josef Bacik To: Christoph Hellwig Cc: Jianchao Wang , axboe@kernel.dk, jthumshirn@suse.de, hare@suse.de, josef@toxicpanda.com, bvanassche@acm.org, sagi@grimberg.me, keith.busch@intel.com, jsmart2021@gmail.com, linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/8]: blk-mq: use static_rqs to iterate busy tags Message-ID: <20190315133017.lnr5cvtapo5nxilu@MacBook-Pro-91.local> References: <1552640264-26101-1-git-send-email-jianchao.w.wang@oracle.com> <20190315092020.GA2405@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190315092020.GA2405@lst.de> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 15, 2019 at 10:20:20AM +0100, Christoph Hellwig wrote: > On Fri, Mar 15, 2019 at 04:57:36PM +0800, Jianchao Wang wrote: > > Hi Jens > > > > As we know, there is a risk of accesing stale requests when iterate > > in-flight requests with tags->rqs[] and this has been talked in following > > thread, > > [1] https://marc.info/?l=linux-scsi&m=154511693912752&w=2 > > [2] https://marc.info/?l=linux-block&m=154526189023236&w=2 > > I'd rather take one step back and figure out why we are iterating > the busy requests. There really shouldn't be any reason why a driver > is even doings that (vs some error handling helpers in the core > block code that can properly synchronize). I use it in NBD to error out any pending requests for forced disconnects. I'd be happy to use some other blessed interface, I'm not married to this one. Thanks, Josef