Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3340253imm; Sun, 19 Aug 2018 18:34:07 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwm6H6vplstnaVvzZJ6wrktToX5W4QNVDdTgGOFlO/xeHA9VyXjIeIKUrs69atf5FuA5y0P X-Received: by 2002:a63:2906:: with SMTP id p6-v6mr41999492pgp.204.1534728847284; Sun, 19 Aug 2018 18:34:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534728847; cv=none; d=google.com; s=arc-20160816; b=ukO3Is/K38A+O49XPDT4Tn7e35neWzNoNwymaQPM+Dtkzif8wiqDDNxfetvpXY6pUH TIJfBjTWGokBGo2MZ+lqSY869usihumemM0QjR2fLbBOZZAMepqw6jtrLZyNfsonidYZ u19N3iMrYetIJj/7s4scooJZ7kgjPOv/gEcm6jEIcBfghuAkvXzo47bUuRI+7pzY/jRF QHTpn7jJsgIaltQdWItwXr32G0odJs8VXFIWIXoc4SWuneeOU5R2uAWScZAOqfP2nNB7 Aj91PoMB5L4nROqIi+Yiz8gTdK5wijQKZwoT305sz36Msqn612V9E67BN4Eq4ClP/1XR pQhA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=R3/LANc47hxZ0zvZcbGMGxAci+ng7++gXQSVeD8f2E0=; b=QxJ5dlrjOz1xC3MOtTN3+wQKzaqxRwhhIYvuf/17O+kTzLGGADXOy2rI3p+yz8ingk 7LPINi5dp6hwHMSESsdk8kLvvywq8vuMH05PD3QlwQjHPE9gwElZIDQlk3RoP7yigB8T KzgWfG75NXZ80829E3+ppgBzfMFvaJo7CcHRk7PO6sbv8DIeW8++C3m9BascdRrD0xPX q8L6HDxMJr7yXwO8PS7d54goUSOAy7zEuRHpkyh4Sw7u6KuaAQkptgWbe/mSSfaEqcVP lWc3dGWjSBYpN2Q75TTvZJH+UYsyrEPp+qPmFonrd4aF72Zqu4QxkUTCWPSwHiTlTWwn YWcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=ySLlyqzA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l59-v6si8314813plb.519.2018.08.19.18.33.52; Sun, 19 Aug 2018 18:34:07 -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=@oracle.com header.s=corp-2018-07-02 header.b=ySLlyqzA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726145AbeHTEpc (ORCPT + 99 others); Mon, 20 Aug 2018 00:45:32 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:54946 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725745AbeHTEpc (ORCPT ); Mon, 20 Aug 2018 00:45:32 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w7K1Tk4m066903; Mon, 20 Aug 2018 01:31:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=R3/LANc47hxZ0zvZcbGMGxAci+ng7++gXQSVeD8f2E0=; b=ySLlyqzAVe1X2UdEw6t7CGyCJSZwWhbBGGaph7TzJU/B6Hk0Q+yZNA9Fluftx2W0Ql/O B5152WqCVZZ8uv3Lyb6W7SrTD5YwNoMK2eVRKH6uy6529RrOASMV/HRg7ECkJpNCGjvv HPPMOU+WwEq5MvHh/u7ByK61OAkD53wkn4F8icU4Hwj31gXe5WejXzoVXMvzpiTtAFIc +l6gFXMxhm1/v2PMLMFbfCsucoMZf3FxW2wZtHbU64+ZaZL7M7erMxxR0Q+EHADjuB3T FSQyBGItF4oaJ0cjI/ztV9vP+5G6NxQZ29XB3zvPa2B2PYssSmcq8ekkdfWc5OF721Gw zQ== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2130.oracle.com with ESMTP id 2kxavtbqge-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Aug 2018 01:31:56 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w7K1Vt1W010901 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Aug 2018 01:31:55 GMT Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w7K1Vtkf030462; Mon, 20 Aug 2018 01:31:55 GMT Received: from [10.182.70.180] (/10.182.70.180) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 19 Aug 2018 18:31:54 -0700 Subject: Re: [PATCH V2 2/2] blk-mq: sync the update nr_hw_queues with part_in_flight To: Ming Lei Cc: Jens Axboe , Bart Van Assche , Keith Busch , linux-block , Linux Kernel Mailing List References: <1534478043-7170-1-git-send-email-jianchao.w.wang@oracle.com> <1534478043-7170-3-git-send-email-jianchao.w.wang@oracle.com> From: "jianchao.wang" Message-ID: <75c13c79-efc6-c41f-c349-9dae094f50be@oracle.com> Date: Mon, 20 Aug 2018 09:32:23 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8990 signatures=668707 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=701 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1808200014 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ming On 08/17/2018 05:36 PM, Ming Lei wrote: > I'd suggest to put the rcu_* and percpu_ref_is_zero() into > blk_mq_queue_tag_busy_iter(). Yes, it's fine for me. :) I will change it in next version. Thanks Jianchao