Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1051930imm; Wed, 1 Aug 2018 09:24:13 -0700 (PDT) X-Google-Smtp-Source: AAOMgpciAxdiVdb+AVvKILIPhSCPGHg/Bhg8KZxnHeqaRbWfN2BvLUyyxzLfOuxLnuDt34gST6BE X-Received: by 2002:a63:3444:: with SMTP id b65-v6mr24971153pga.396.1533140653585; Wed, 01 Aug 2018 09:24:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533140653; cv=none; d=google.com; s=arc-20160816; b=kn1n7vKkhbPGJ9atJmXUlNCO76TJHfE9dtZrW1AmzFb6B93kotWNGlcTWdSlRN2BXH bEO1ij+FYIEWYH0AUa2dsHOQbFAgi9i46EKQcm+llUoG8aDrmiAcaWkLu+ai1HqdJQAe m061KuiNH/l4vOEU8R+E9uCnzazojY600m8DVl6uIdJZjqlAmyOEQIk6yh+k5JXYNrwK Eee8TDtexIfFW2YVjKc2FQwyRITrT+6wszJK2alEuS9tNJV6VS8VQvDXBoAkRW6JfzPz lqL6W9JydeyQc+IUsuwnOHXyQnC1O0HKMGjEqMot7rpcoQOAmru9tVgxRMFFek4KHgvH dmQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=YeKNeBh9rRBHP6mkw0hwrur0Evb+HIWv7cKHVK0Tb68=; b=WN7wx5VlXegXB6pgkp+P9PLCdPkH+X729syZ1Ht19jsuunqGH4+rEI4Bms0RMJ5JOM 0+B1QUJrnnG5Hatds5rD3gJaxo8Csek6jPi36BqZrVgUngofA5aj5AznHZRcz+Eoa/Y+ g7kY4jx0CHjjcQbGJEykShZvXvMLpeXm/ZDPrIsO4d75VYDiX4rKO2HuqzM+z1+OmKZe uK1cmPEtWVwQogOJvBSFITo73iRWsfd6Q1bLklbIMzIDvx5MKJ8tKlPvS4Lpcm2PST8/ kXlF2EsB9Yspkhw2k0hugbCBTlIeCOxlvgJY++zjhZat1rT5L53Ff+v2xLuT/reTsqn1 hMhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=Y4CXEjL6; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j6-v6si15436138pgn.416.2018.08.01.09.23.58; Wed, 01 Aug 2018 09:24:13 -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=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=Y4CXEjL6; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390076AbeHASIc (ORCPT + 99 others); Wed, 1 Aug 2018 14:08:32 -0400 Received: from a9-46.smtp-out.amazonses.com ([54.240.9.46]:50434 "EHLO a9-46.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389854AbeHASIc (ORCPT ); Wed, 1 Aug 2018 14:08:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1533140522; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type:Feedback-ID; bh=YeKNeBh9rRBHP6mkw0hwrur0Evb+HIWv7cKHVK0Tb68=; b=Y4CXEjL6tKHB8k31Cwe3aWWLFQVr2i/MyffwCW3xBEMY+6o5p+My9uyGVcB3XcYf WnsnL2aPzxvO7SBqfcgW/kkXbT/KmShx6GEVEl0uCvpDvDyJBjdUjMGUk26ORkwIHIY WM/lIKv3mxWoVMBWxwMHQ/0JSLdwqMdhmZhftbVI= Date: Wed, 1 Aug 2018 16:22:02 +0000 From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Eric Dumazet cc: Dmitry Vyukov , Eric Dumazet , Andrey Ryabinin , Linus Torvalds , Theodore Ts'o , jack@suse.com, linux-ext4@vger.kernel.org, Greg Kroah-Hartman , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , David Miller , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev , Gerrit Renker , dccp@vger.kernel.org, jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, airlied@linux.ie, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alexey Kuznetsov , Hideaki YOSHIFUJI , Ursula Braun , linux-s390@vger.kernel.org, LKML , Andrew Morton , linux-mm , Andrey Konovalov Subject: Re: SLAB_TYPESAFE_BY_RCU without constructors (was Re: [PATCH v4 13/17] khwasan: add hooks implementation) In-Reply-To: Message-ID: <01000164f64bd525-be13e04f-18a9-4f7f-a44b-0c0fcec33b71-000000@email.amazonses.com> References: <01000164f169bc6b-c73a8353-d7d9-47ec-a782-90aadcb86bfb-000000@email.amazonses.com> <30ee6c72-dc90-275a-8e23-54221f393cb0@virtuozzo.com> <01000164f60f3f12-b1253c6e-ee57-49fc-aed8-0944ab4fd7a2-000000@email.amazonses.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SES-Outgoing: 2018.08.01-54.240.9.46 Feedback-ID: 1.us-east-1.fQZZZ0Xtj2+TD7V5apTT/NrT6QKuPgzCT/IC7XYgDKI=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 1 Aug 2018, Eric Dumazet wrote: > The idea of having a ctor() would only be a win if all the fields that > can be initialized in the ctor are contiguous and fill an integral > number of cache lines. Ok. Its reducing code size and makes the object status more consistent. Isn't that enough?