Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp104964pxj; Thu, 3 Jun 2021 01:56:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBhD0RSccwtptmlDp2LZnGFuYi72LJUF64H7/uDCBpnczf/Mz7o2Laa7VCpgD+vXetTSVx X-Received: by 2002:a17:906:b84f:: with SMTP id ga15mr25004294ejb.372.1622710612485; Thu, 03 Jun 2021 01:56:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622710612; cv=none; d=google.com; s=arc-20160816; b=yJMdvHAQjiq6sMTBuBzSnEtt4zIBBtSzfbsr0vsLCOsonRuyokNA2AEk2ZwBYe9TRz erKRHw8318YNZGTubrjnAMVO0IrOfbyaMkyfZXdDf9KLlbymecxqjGMyQcq6a02cnwGs VzNZL/ESDViaWYG1NWiAVfNdndbSj/gMuMtyhXYURbLHE2448Qo4jVn2udpA/gHAyIAp JAUxVinn2Sxf69seExYMP5zho1Kj/bmOqbLPyljOsQBnBfpv1NUeL0jBw4pSyr6lLEXD EUJxzv5yUu1n4UyQ1AxAEcCsq6urGN4RZf7IwcZFdFXzAg0rJaF96gqeA93sk8PvTfgD +EBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ABH69pU572N1Xr2DyDFuW0xquW3qwn7uTtfYIGhaPYU=; b=if9YVt7Sng0TP0QA7yQ26sO7Wwk9LfbwjoZl4F0Q3cpaPZ0JvkkKB+4KeFkcIX+Wza tNKeLJkcy2yqez9eGiYlw7QT+7D1SKCINaUiuyuMl5mPpoDsNM0cqXLJFQrOVxF3QaEa 6jRjicbOsiyBp5jih7X0eypi0lIVnez2uyBl8PV/OD28JncMpBmqbdfaXAyg/C3ub1HF AKpWOwGJtpbakR/O2VqNm1GL7FhadLB8Q8EhrMsnwbeWPOfZEJ0I+AKPG6UnlId3Qlfe asEuXMTiQ7r3E+qkHfS2LlMBE4BkZAiM0Q04WTOL6A5It23wSDtC0XdmeOE0H0n7r/Ei g6cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jEhrOQAA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id de26si1907120ejc.6.2021.06.03.01.56.30; Thu, 03 Jun 2021 01:56:52 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jEhrOQAA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229845AbhFCI5D (ORCPT + 99 others); Thu, 3 Jun 2021 04:57:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:41758 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229486AbhFCI5C (ORCPT ); Thu, 3 Jun 2021 04:57:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0C37361361; Thu, 3 Jun 2021 08:55:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622710518; bh=q2XjFZmNcMW2w+e43UnJ5OjBO2o0qLeFrIUmL+5meL8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jEhrOQAA8auqlHcs+S+G2PXftiMGMcChJX6OVNX9jgsSZgNnCEQtWCwTphCkwCM6k DcOticObnDc01iIewJHDGayFspl5kpqvxdlUDYMkxi9j/Hhailt3HDcIaE83d2p0+k P4KO8ydi4XVFznX92i+22qEpQeUsbilSFwIrrcGHuJ0XBf5R0osShuSys/rlI5BZJA XnYVoUFc5kXLWIstdUOJVwDLEuYuuVs2iBzLNy0wdR5AD/5puG3TyFATn9bDx8FG1Y 5GiH7HCb+64UnqrjXT8LL/1sLk5a8f+/GJqwLj1ifqIVi52ndyKgadfCNUHyAQWmqJ 5OfWy0EDfs+Og== Date: Thu, 3 Jun 2021 11:55:15 +0300 From: Leon Romanovsky To: Anand Khoje Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, dledford@redhat.com, jgg@ziepe.ca, haakon.bugge@oracle.com Subject: Re: [PATCH v2 2/3] IB/core: Shuffle locks in ib_port_data to save memory Message-ID: References: <20210603065024.1051-1-anand.a.khoje@oracle.com> <20210603065024.1051-3-anand.a.khoje@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210603065024.1051-3-anand.a.khoje@oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 03, 2021 at 12:20:23PM +0530, Anand Khoje wrote: > pahole shows two 4-byte holes in struct ib_port_data after > pkey_list_lock and netdev_lock respectively. > > Shuffling the netdev_lock to be after pkey_list_lock, this > shaves off eight bytes from the struct. > > Suggested-by: Haakon Bugge > Signed-off-by: Anand Khoje > --- > include/rdma/ib_verbs.h | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > Thanks, Reviewed-by: Leon Romanovsky