Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1464267img; Tue, 19 Mar 2019 08:11:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqykOo6vAu1SLbToPGPVEe/W1qLZpuFNiyWvfIXhFbgtPqMDvbpmZ78kQnJv4T0i1/oFm9Xb X-Received: by 2002:a17:902:8ecb:: with SMTP id x11mr2545784plo.40.1553008285459; Tue, 19 Mar 2019 08:11:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553008285; cv=none; d=google.com; s=arc-20160816; b=S8eFK1t9cvpGDE6UYt43gIQ+ZWc5yIUKQNMv9o+BYMK3HtIxS006P0HMOpg+wv4pcR 0qFT3v/iU7Vr5LoJ3RS2dLeQ/IfKkKaP8e8LaeJr3C/jbZMeY/AnuF3KKDokmYuCewAm 8quhcxLSSL6T8CR/vYwYY+EpMNFLwR2TTTTdk9M53xMIOg8eQvD6nGdLR1K4rL3irUzk FzFhq5pHWaFS8rvAlre1qJHcGikoDm8EJc/MngV5+7mPcTrKTji0HCeIGgn2yB6a1/Dr kSuIMidwJ+VOE4DJFP8SVpgY7/BC89rKy37xIrunT+gWfBtGLmv5rlQvKkj/Wk8rI0Gp OArA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=qWVbPbIJHWRu+0d/VAgqUPk+oUx6QNArMt1VL+TqPEc=; b=e+HBs2L4r08MU0qKGdHcxQuvDpLEYpGHkKp1lsjDbKxmZkVVebMejHbcgx5G73ZpVP 6yoL1dRDMN1JU02bCVdSgxcEh7iHEhRcq2XqBpQRuthYyjY69otFnjkYMOWp5MV7Zm/w MjTuBx5uHugL43ojX2jgIWRnHLNL41pSaAfSUwLfK1/u4/9UrpVHywzCpikqj44jBGOK sZrjMesU4cj+q8KiO0EFIe1aACpeGxvXTyJOLdcKNQVv3u9Z5g0qY9ILIoHsTzzNge1h QrhxA/nsO4izQ0gq3vKdrVpOyoK1o2Qb5g2tCKX7yaWFvFWzgWsiizA7mvYxFOHJ4Z2f O7mA== 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 f66si13000229plb.261.2019.03.19.08.11.09; Tue, 19 Mar 2019 08:11:25 -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 S1727662AbfCSPK0 (ORCPT + 99 others); Tue, 19 Mar 2019 11:10:26 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:39802 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726579AbfCSPKZ (ORCPT ); Tue, 19 Mar 2019 11:10:25 -0400 Received: by mail-pf1-f196.google.com with SMTP id i17so4142018pfo.6; Tue, 19 Mar 2019 08:10:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=qWVbPbIJHWRu+0d/VAgqUPk+oUx6QNArMt1VL+TqPEc=; b=QWczDsYg5YdOTZ7vgl+ku1oNqNPZtnT7+7+xfZryztnx0fJuqiFUqbqYK4pdKv8fFi LGvRf3sx+5mu1TPoYoTC3T7PnbILP1ssW7fJi3I7fOWf6KAY9yjLPiNfYzYO2UP/I8fa NQYDGbu8uYv/PGq42J8dRawyf9/cBkomA6PM4qnAwbL7sleZzd8ak12C7bcx6gOaZRR6 7vLS4/aCOnvOUcqFTaQhDYBwXkiYsfRuqpoGEPHYMYnyUVyDBzdqOBwXQpsABYYaj2BI MoYwVPUPS2+Xg6ViJGkV+BtLh4QQ1kcSgOgUOWAln3UAEBK84oxROnblKMD9y/CU+kND 38MA== X-Gm-Message-State: APjAAAVV5pjFPU3g2rG4/riLvWjPHm30Q1KbuLGz5wpKhY1lgjInOlcw YJriwLlIoKWSMrSh4yV7oLY= X-Received: by 2002:aa7:8082:: with SMTP id v2mr2659054pff.164.1553008224410; Tue, 19 Mar 2019 08:10:24 -0700 (PDT) Received: from ?IPv6:2620:15c:2cd:203:5cdc:422c:7b28:ebb5? ([2620:15c:2cd:203:5cdc:422c:7b28:ebb5]) by smtp.gmail.com with ESMTPSA id h9sm25950092pgk.22.2019.03.19.08.10.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Mar 2019 08:10:23 -0700 (PDT) Message-ID: <1553008222.152266.43.camel@acm.org> Subject: Re: [PATCH 0/8]: blk-mq: use static_rqs to iterate busy tags From: Bart Van Assche To: "jianchao.wang" , axboe@kernel.dk Cc: linux-block@vger.kernel.org, jsmart2021@gmail.com, sagi@grimberg.me, josef@toxicpanda.com, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, keith.busch@intel.com, hare@suse.de, jthumshirn@suse.de, hch@lst.de Date: Tue, 19 Mar 2019 08:10:22 -0700 In-Reply-To: <3cd58454-eda3-de9a-0eed-b6a7edbce28f@oracle.com> References: <1552640264-26101-1-git-send-email-jianchao.w.wang@oracle.com> <1552930085.152266.36.camel@acm.org> <3cd58454-eda3-de9a-0eed-b6a7edbce28f@oracle.com> Content-Type: text/plain; charset="UTF-7" X-Mailer: Evolution 3.26.2-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-03-19 at 09:25 +-0800, jianchao.wang wrote: +AD4 Do you mean this patch from Jens ? +AD4 https://marc.info/?l+AD0-linux-block+ACY-m+AD0-154534605914798+ACY-w+AD0-2 +AD4 +AD4 +- rcu+AF8-read+AF8-lock()+ADs +AD4 sbitmap+AF8-for+AF8-each+AF8-set(+ACY-bt-+AD4-sb, bt+AF8-iter, +ACY-iter+AF8-data)+ADs +AD4 +- rcu+AF8-read+AF8-unlock()+ADs +AD4 +AD4 The busy+AF8-iter+AF8-fn could sleep for nvme +AD4 blk+AF8-mq+AF8-check+AF8-expired +AD4 -+AD4 blk+AF8-mq+AF8-rq+AF8-timed+AF8-out +AD4 -+AD4 q-+AD4-mq+AF8-ops-+AD4-timeout +AD4 nvme+AF8-timeout +AD4 -+AD4 nvme+AF8-dev+AF8-disable +AD4 -+AD4 mutex+AF8-lock dev-+AD4-shutdown+AF8-lock Hi Jianchao, I think that's an additional reason to rewrite NVMe error handling ... Best regards, Bart.