Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6906141rdb; Tue, 2 Jan 2024 19:17:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IHCx/CYcB+IR40MjUHCCqLfXkTWQJ8iLrOppFWKK+yQIUHETFirZj7kZMJNJy7TdWk7bB7H X-Received: by 2002:a05:6808:4482:b0:3bb:c755:100e with SMTP id eq2-20020a056808448200b003bbc755100emr9691321oib.19.1704251862831; Tue, 02 Jan 2024 19:17:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704251862; cv=none; d=google.com; s=arc-20160816; b=sKzqcXUXuvn1RbHu97m3E3Z/FbZgxY6L11kBmk7etIT1ML6hu3i6BAivhnTXk/1yVo FIr6Us3EoE8mTHKdrGBZsWtVlOu6vfv2XBpR9gQkwmq5BQc6Q84hanuOPw/WhERQfVLE md3e43VQWUjeJfUIvipFxqYsRz0AO1DFD6OGv8QHAm6IRF3w4kz065t0dVQwsuWNHCrn W0deuRl8rzIkZmcs3gdbzr1EtlSgT3Cm3sZNk+8c7qsuavXVXsoGLuuad1AkA2i1njO0 vxa4Aj8gWVQrhgHpv8Xe5ovmZCXTN5Nk7LiTYNzfRI0qnHtE5f1QCEzFnLswuHtdhBX+ D9aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:date:references:in-reply-to:subject:cc:to :from:dkim-signature; bh=EUBp1Cg9uT/JPtjwu6YwEEwFRU8/GOK2srl9AmJQN5s=; fh=9xupwZZFE6lxJlmUaQvZqRkpCPVb7YJuuJnvP0GuWt4=; b=kQmj/2X6sZKFRJUAnGcxz1ny7o/3fZdZkGhA68KybJ+TaaZ1XUfiEoC5I5y+U1u18+ tG+F0aPlPIx/M8OGTuXatt/c/ONZ3OEjp4DrOOlq4srB5FzH7a7tgO3HboQRJur/DN7k kz9vhINAqhPRG7Okj2urLsFb43FamEQRx22b1adNToaDfIniRX32wNOyY1Vkjpfu7EEG 55ROmUE3260CJ+45U9lrrMZQK9MaMNRRmPvG3ZTeqSx0wDkvrAWFqRmcjav3SqwfNd5d kFou7/k64+vr/UZg7uWA5+KJz8KzDyNjyynmLsU7cR15rbdtcpZabz0RJP+4z6SC4EiX cG+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XNOdzEAc; spf=pass (google.com: domain of linux-kernel+bounces-15131-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15131-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id i17-20020a0cf111000000b0067f8d8402dcsi26633847qvl.174.2024.01.02.19.17.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 19:17:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15131-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XNOdzEAc; spf=pass (google.com: domain of linux-kernel+bounces-15131-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15131-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 93E451C22DEE for ; Wed, 3 Jan 2024 03:17:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 871DE17988; Wed, 3 Jan 2024 03:17:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="XNOdzEAc" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 24C7C156E3; Wed, 3 Jan 2024 03:17:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704251834; x=1735787834; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=IYl8ewQ4V4H2LKmJOnjAX1mXhwVOE3zgKgzzaM0O4jg=; b=XNOdzEAczL+1nrraXDOtIYd9qGEEHxEFmnI2C2UQm5OPhO2PuHkNfXjy vPYAZP1wIEUrDR+uTT+ixM6fCi/OxeZnL1g8DCsQfPoYLcSOXN5F2c6aV PMcuXVhR6ck1ZrSeDHZQahOKCZ3lRuGLKq3l4g6XlBgx1e87vLNJmZf8T 1zVpUzzpgjhDPUSDAoRNnwIS2RQ7d7YZdXsa5yM2u8NrHw5yg/VfhhMcg Am4inq2LyXmWyH3aUJoIVq4bM3H/Mw/UZ5tnCnahr4vayPnS0AalxbG+v DJ6MaO9LCd2uO7kuVbZOfzvYtg2d7RwNeCA37upT5JcXOIw//hu7CvvCM Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="483135463" X-IronPort-AV: E=Sophos;i="6.04,326,1695711600"; d="scan'208";a="483135463" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jan 2024 19:17:12 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10941"; a="783381442" X-IronPort-AV: E=Sophos;i="6.04,326,1695711600"; d="scan'208";a="783381442" Received: from yhuang6-desk2.sh.intel.com (HELO yhuang6-desk2.ccr.corp.intel.com) ([10.238.208.55]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jan 2024 19:17:04 -0800 From: "Huang, Ying" To: Gregory Price Cc: Gregory Price , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Johannes Weiner , Hasan Al Maruf , Hao Wang , Dan Williams , "Michal Hocko" , Zhongkun He , "Frank van der Linden" , John Groves , Jonathan Cameron Subject: Re: [PATCH v5 00/11] mempolicy2, mbind2, and weighted interleave In-Reply-To: (Gregory Price's message of "Tue, 2 Jan 2024 14:06:13 -0500") References: <20231223181101.1954-1-gregory.price@memverge.com> <87frzqg1jp.fsf@yhuang6-desk2.ccr.corp.intel.com> <87le98e4w1.fsf@yhuang6-desk2.ccr.corp.intel.com> Date: Wed, 03 Jan 2024 11:15:06 +0800 Message-ID: <87sf3fcdl1.fsf@yhuang6-desk2.ccr.corp.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Gregory Price writes: >> >> > struct mpol_args { >> >> > /* Basic mempolicy settings */ >> >> > __u16 mode; >> >> > __u16 mode_flags; >> >> > __s32 home_node; >> >> > __u64 pol_maxnodes; >> >> >> >> I understand that we want to avoid hole in struct. But I still feel >> >> uncomfortable to use __u64 for a small. But I don't have solution too. >> >> Anyone else has some idea? >> >> >> > >> > maxnode has been an `unsigned long` in every other interface for quite >> > some time. Seems better to keep this consistent rather than it suddenly >> > become `unsigned long` over here and `unsigned short` over there. >> >> I don't think that it matters. The actual maximum node number will be >> less than maximum `unsigned short`. >> > > the structure will end up being > > struct mpol_args { > __u16 mode; > __u16 mode_flags; > __s32 home_node; > __u16 pol_maxnodes; > __u8 rsv[6]; > __aligned_u64 pol_nodes; > __aligned_u64 il_weights; > } > > If you're fine with that, i'll make the change. This looks OK for me. But, I don't know whether others think this is better. -- Best Regards, Huang, Ying