Received: by 2002:ac0:a874:0:0:0:0:0 with SMTP id c49csp267279ima; Fri, 15 Mar 2019 02:21:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+M3nileVDUvTgAMZBFFAQG9smCHcmVxKhAVDY7CdEzEpZOQVVmVDB13VYPBzP4haiZ4J2 X-Received: by 2002:a63:2bc6:: with SMTP id r189mr2346606pgr.201.1552641682128; Fri, 15 Mar 2019 02:21:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552641682; cv=none; d=google.com; s=arc-20160816; b=aS5PEMg2hkRYV/DejRiUvcLt984HJbDR+X58jmKR1AHfyCoX/+F/iMij9aUYmKHC5V EJhqKMA/jh0TdzQlqipxy4Pixny95m9aIgv+WPR+Yw21RZjkixORNJLaDt5SQ7IDzRjH BgeZZdHrGC39FPbRbjCVqHmk+11z1SjTC9lWq50S9SNhWfNDmx52lQr646feoPafRg3c +wIAKly81R7tRMqxF7SgadRWcrnKTyx8JF5m8LoaxH2gCacHK5NxlA6FpODU5duh4iaa 0dpQYXgsPoQVq2y339nA7VMAm7OmNHiRfFB421POgyzuTHJrcQa05j7brICoWt9HVz2g xeFA== 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; bh=OW6rgCurX8sOKKwZkZpwH/gNoVoyHdQvCCKstkfkK1U=; b=pDetEjc5cr1gGW3Pcm7P7Qq49ukw5Im07mduWjeiQAnmzSASAZAINwjriWwwWwf9so lGKCxISR3Ia1UmX3CJLE47wWt54dDhHUczLOT70Om+IlcrbHokOBSrmrI5l2/oElGA3S 7iDOZGamtzKKdQAzMRdAnVRHikkw/bvu4wygK9aMx0J5YP4h+Z/Dpm4XiLfN2f5Xs/OQ nMsmiRETmkXPelJoAxzk6vaL69bKMZJRCRwzBzq9GXfs8+Bkw6dQCr9t+SUaQNCUI7F8 HaruqrJNLvc11OC1SP96StrXnR/KFeU+znyLfDwWQI1cdsAxDLxdtkFBh77EdTYs2la+ uvHg== ARC-Authentication-Results: i=1; mx.google.com; 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 w2si1317623pgp.266.2019.03.15.02.21.06; Fri, 15 Mar 2019 02:21:22 -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; 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 S1728616AbfCOJUa (ORCPT + 99 others); Fri, 15 Mar 2019 05:20:30 -0400 Received: from verein.lst.de ([213.95.11.211]:33266 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727282AbfCOJUa (ORCPT ); Fri, 15 Mar 2019 05:20:30 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id BC9AC68C4E; Fri, 15 Mar 2019 10:20:20 +0100 (CET) Date: Fri, 15 Mar 2019 10:20:20 +0100 From: Christoph Hellwig To: Jianchao Wang Cc: axboe@kernel.dk, hch@lst.de, 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: <20190315092020.GA2405@lst.de> References: <1552640264-26101-1-git-send-email-jianchao.w.wang@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1552640264-26101-1-git-send-email-jianchao.w.wang@oracle.com> User-Agent: Mutt/1.5.17 (2007-11-01) 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 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).