From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54B67C38A30 for ; Wed, 22 Apr 2020 07:00:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3A7E12070B for ; Wed, 22 Apr 2020 07:00:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726082AbgDVHAf (ORCPT ); Wed, 22 Apr 2020 03:00:35 -0400 Received: from verein.lst.de ([213.95.11.211]:50563 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725810AbgDVHAf (ORCPT ); Wed, 22 Apr 2020 03:00:35 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 5F7D868C4E; Wed, 22 Apr 2020 09:00:31 +0200 (CEST) Date: Wed, 22 Apr 2020 09:00:30 +0200 From: Christoph Hellwig To: Ming Lei Cc: James Bottomley , linux-scsi@vger.kernel.org, "Martin K . Petersen" , Bart Van Assche , Christoph Hellwig , John Garry Subject: Re: [PATCH] scsi: put hot fields of scsi_host_template into one cacheline Message-ID: <20200422070030.GA23565@lst.de> References: <20200421124952.297448-1-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200421124952.297448-1-ming.lei@redhat.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org On Tue, Apr 21, 2020 at 08:49:52PM +0800, Ming Lei wrote: > The following three fields of scsi_host_template are referenced in > scsi IO submission path, so put them together into one cacheline: > > - cmd_size > - queuecommand > - commit_rqs Please add comment in the code on why they are grouped as they are. It probably also makes sense to have them at the very beginning of the structure. Otherwise this looks good.