Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp558728pxk; Wed, 2 Sep 2020 08:44:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQbQn2uLovCYembXm0zvrYIgcIrEXOBzWzGT5kzPltIowcvTgWwZAch8ZuY9mmUM0qI0us X-Received: by 2002:a17:906:3715:: with SMTP id d21mr582067ejc.281.1599061476900; Wed, 02 Sep 2020 08:44:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599061476; cv=none; d=google.com; s=arc-20160816; b=n9scC7c2ffQ9rht2jiYAtc0vEsbEZfvlB71JdJ8ZzmPtBO7i++q8mnJHowFLLSnKZV 3IqfOAaPkj+tIquNP8bHOIZnK0CJXAySIlaeC89pLm4bCO0wiMXSfKYgSa9JejDxYmGc V0HuQ8hjKgpvSCFEwAEeKr29hks1JiSIoXHNns/0OajaMnGsZwXyuN/m6ILKJ/0Myile +pu1aYW4/7ZbHAcYK1jd6JiFG6Lxddq+hKh5zZANXss8X4DWWLkbwWNo+nUWQtvf8LSJ knt5RFE7zFlY5Jx++VEccUIW6CGbEkH8MJX3eI7pKOZEd1PJWwmH3SgSarJPmxIUF08k kDFQ== 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=K/NYzxTFV29pTjzz7282Gv2t3VkD8F3gJjDlrC6jfUY=; b=e4i84jdAmFSXHC+B0tl+EatWuYUG2kS95oOyL7wgORZThE8SGZOLu/C16eQ1jSKVih e7H1x+a21/ppEaY/zEafIsw4Uf6PvCL2vAZoriuItEKcc7JsS0GyRJAWQIik27/yohV4 OmqDlN5Hz3IMU9ma2YezVLSCpC66lWI4vr/MLTJ6wjEnoCzDoDIkVkGv/ansa3AD9b7w cEVtYDplBtkRtt2rPMKzNcK+K7jV2AY6v4TRyyin6CXuaKprnda+Ld9LgdJf0zjDcKFu jHXp8xJamUO25PjmmAWBWqQlJYSlKBJF8GbfUfZhUCx3gJB5A0QR2sOeUTXCLONDBvhK R2aQ== 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 k14si2810495edr.96.2020.09.02.08.43.49; Wed, 02 Sep 2020 08:44:36 -0700 (PDT) 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 S1728161AbgIBPlL (ORCPT + 99 others); Wed, 2 Sep 2020 11:41:11 -0400 Received: from verein.lst.de ([213.95.11.211]:60153 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727872AbgIBNpA (ORCPT ); Wed, 2 Sep 2020 09:45:00 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id AEAE168B02; Wed, 2 Sep 2020 15:44:56 +0200 (CEST) Date: Wed, 2 Sep 2020 15:44:56 +0200 From: Christoph Hellwig To: Ming Lei Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Sagi Grimberg , Tejun Heo , Christoph Hellwig , Jens Axboe , Bart Van Assche Subject: Re: [PATCH V2 2/2] block: move 'q_usage_counter' into front of 'request_queue' Message-ID: <20200902134456.GB32502@lst.de> References: <20200902122643.634143-1-ming.lei@redhat.com> <20200902122643.634143-3-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200902122643.634143-3-ming.lei@redhat.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 Wed, Sep 02, 2020 at 08:26:43PM +0800, Ming Lei wrote: > The field of 'q_usage_counter' is always fetched in fast path of every > block driver, and move it into front of 'request_queue', so it can be > fetched into 1st cacheline of 'request_queue' instance. Looks good, Reviewed-by: Christoph Hellwig