Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1054716imm; Wed, 1 Aug 2018 09:27:03 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeGZM+5V/SFfx5+Q+7j2EG10rePiMqba33DkkoPaCeH+DkYQSTOqjqAXjgd1wF0XuFCPcm7 X-Received: by 2002:a17:902:7798:: with SMTP id o24-v6mr25951472pll.165.1533140823681; Wed, 01 Aug 2018 09:27:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533140823; cv=none; d=google.com; s=arc-20160816; b=m14UmY3NgP+YYC1EwlXXdUuUwmixvT5Ptut2rRL3qF+FdeeoqfqoLWZtYgMOZ/faLK oPvs2j0Z8WU6XTdJ2eNhmbkY9fdyBQ3dw59noUA0QL2ATEb9o22cawZ4Kp/o+XjoxihL 05kFe6HSD1RkMd9MLJQOefaUjqUN84WflkjszMjbrkzetmF6erAktn4sxf8t6OrxBBBl AnTLOsC6PQBRr7WlvttmKKje2OWdSok8F7DJlvlcDXXDIjHxrHhFOZ0PMtdh2JXeJTBE LWyVNqsj1HAjl1Zm3g28YZUzOIsoHmnCWzMyqrRAkJktqdasRGllm4R/Jinau7hvyjaf IwUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=MU4LbWjdPjbSgvRdbbnhsVQq36Zk5Rj2ivak+iUq270=; b=osTBpXZVBtVsXU+a11brECYVWNQ55hxr5n96OmOMuYIgKmbby9U3MmkU3zULDMWvoX TMzuHtGOGIN1CiHXE4l20s7hh1o5FpHXOog9J7mVe3wZJCMxWE/mFB8/Lj8y34w/fwac /4joUiTyP6BYeolq9xIC5YuiPZEnIybI5eKdsJnZzDcpWE1SkNuiaWgECe4Gk+vBDrJq Zf1dFOo8bEQCJnIo99mH+bJFTRaSV9v4pzMlhtZlYYZRMiSBFUUboLg1VvpZZHqzziJJ t+/chZHQB8PQvimU/c/cgvVSENFocZNbH2A5pjCxJrRtXsz0Y5LV82PY1NY4YqQAaNEJ mI8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dVJrmci7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x11-v6si14489076pln.130.2018.08.01.09.26.49; Wed, 01 Aug 2018 09:27:03 -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=@gmail.com header.s=20161025 header.b=dVJrmci7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390177AbeHASM2 (ORCPT + 99 others); Wed, 1 Aug 2018 14:12:28 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:43277 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389980AbeHASM2 (ORCPT ); Wed, 1 Aug 2018 14:12:28 -0400 Received: by mail-pl0-f65.google.com with SMTP id x6-v6so9037151plv.10; Wed, 01 Aug 2018 09:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=MU4LbWjdPjbSgvRdbbnhsVQq36Zk5Rj2ivak+iUq270=; b=dVJrmci7jetPhMzzkBslrat1w3/2hy30a5COxJleu7+GqZRDIb22UcTCqMYilK6Iat uNd52r+FqiTy2dW1GfL9Z63tUNYXJN/3H3neUmrl7Q04yq4PL6lkPHAt18q+NgorbcrE cIXwEc1SwowZx6uyqSPaE6cdoRxI0MvljSqF6k3ChdCEzCDfA1kdb1c/W44xLwVLKkuQ sQRfk8cQU2ZGBq+SZg7U+5HneZK3XDgtaFTI43YkERLZxRNBnroZqgQDcLBFRmMt/qms /Mjq6EIMBw7hl5NFCxdfBLTsqxq/v3OH8fnUDXHu82eFjQvsSbkIHtPms00Hyk6ooD0P FZGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=MU4LbWjdPjbSgvRdbbnhsVQq36Zk5Rj2ivak+iUq270=; b=r/fPV2hxpmiYWdW8WK0V0QlrTRVjmbfIA0b+fs/8BXIObuXCNVWy1CeOhCo4SDDE6U IisFbVDDnvGL5W/71VbQI4ATdU3iQZHw8WNbIPSVprtKfUk2ZjxeQLvzKO8xPbPX6hrX /RFDwuyN7Gc3mieJiUk6KoAJk8NFfMo0JVaTjfxX4666+9cI1B/FZw9ti8mT9P85C1op RpKasjCeFc1tunXm3j3r6QmTmI6B7elWpVCNiQ2qtrIK10HzW7BpuxQr/XFd3gTk00TH EaIoZF1QoPKKZsdeg+Dm3NLwD/zkoQesIOtZ8XaEI1s4bWn9VJHBn55ImlofHiU5uRzL u3Iw== X-Gm-Message-State: AOUpUlGA0xQ5a78v+EhO9w6k+R26gSQ40kWaNCjua72ripvTrE24/IOE n7LDrjobBSdGvyY66LK6wzQ= X-Received: by 2002:a17:902:a5:: with SMTP id a34-v6mr25709421pla.60.1533140757623; Wed, 01 Aug 2018 09:25:57 -0700 (PDT) Received: from ?IPv6:2620:15c:2c1:200:55c7:81e6:c7d8:94b? ([2620:15c:2c1:200:55c7:81e6:c7d8:94b]) by smtp.gmail.com with ESMTPSA id r19-v6sm42365883pgg.39.2018.08.01.09.25.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Aug 2018 09:25:56 -0700 (PDT) Subject: Re: SLAB_TYPESAFE_BY_RCU without constructors (was Re: [PATCH v4 13/17] khwasan: add hooks implementation) To: Christopher Lameter , 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 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> <01000164f64bd525-be13e04f-18a9-4f7f-a44b-0c0fcec33b71-000000@email.amazonses.com> From: Eric Dumazet Message-ID: Date: Wed, 1 Aug 2018 09:25:55 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <01000164f64bd525-be13e04f-18a9-4f7f-a44b-0c0fcec33b71-000000@email.amazonses.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/01/2018 09:22 AM, Christopher Lameter wrote: > 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? > Prove it ;) I yet have to seen actual numbers.