Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp381531imm; Mon, 21 May 2018 07:32:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZodcY0Hi6aZBuADF7mDwYk4pRgjyMy8fgxhGP6D1nbVPgHs02CzvyGwwv4F51PgkyWf3w0M X-Received: by 2002:a62:b03:: with SMTP id t3-v6mr20326265pfi.32.1526913135442; Mon, 21 May 2018 07:32:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526913135; cv=none; d=google.com; s=arc-20160816; b=N6WULBxc/tRztz2kV2m8GTbPC1bTsd6v1ebJJSWJimqszjL4OorWJGR5NM37+vLNA3 MJMGsgEJ1C3LEa5EO0Y3UsPzCntyfsFmCNvlLZAlVm1SQ7sk9EbBCvb9r2S6dBQyqB9U G3NaFrNY/uw1J7oywOvNEAOL89mLSj07qq3TFXaBJXK2EOcE4i0XBQj1Oxs5tMhdAJR0 l4/9wLzJcrGnbwaMR5IGqOC8kRi45au3w2b/D0mxVIe3nPTX/8jC+icBPauOOADW9k7v K0u8t8Y//NnsEis5D2xngIRR+ZJtXC52MMgdgtpO9XL5lOk0IWpbAEV0220/LT6n/1rK l0QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=lZ/gny1IxhkVHU7hfPAGOKC83k7j8Ft+HQ3TXl+d5hI=; b=NOQg6Rsnh0zUNxGbwGhFTgy/gMh2HCqy3HnVKbr3VeckapgPH4oqam82K3vxRBHymO OZlnbCxAYLQ58IH5wt8qCTvZ8BSqittEQDwhgtHPV/W8r7+qTns5BGfAMeRm2/euPkXy 7BBQ2HFbZn0FSv8bleSbUehMiAKooH8egBXWh8NzENKKBG8J3qSEYDk1S+gHoM3QPI1r tpEWA6S4FnrfFlrCtNRCut14MNJLjYAP2Azu/Lf12tweopjqPFX+JzY8QEDVKGpPuiit GIwtr8eZtVKup/3RAeDSaTD6KRu22OKEbTutzbvxLNB2960WngEc+d+xc7e3ezDh0pW4 AUHA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a64-v6si14444645pla.530.2018.05.21.07.31.59; Mon, 21 May 2018 07:32:15 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752702AbeEUObi (ORCPT + 99 others); Mon, 21 May 2018 10:31:38 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:36594 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751504AbeEUObg (ORCPT ); Mon, 21 May 2018 10:31:36 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0F6E14201AE6; Mon, 21 May 2018 14:31:36 +0000 (UTC) Received: from localhost (unknown [10.18.25.149]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D4FEF2166BAD; Mon, 21 May 2018 14:31:35 +0000 (UTC) Date: Mon, 21 May 2018 10:31:35 -0400 From: Mike Snitzer To: Jens Axboe Cc: Kent Overstreet , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, hch@infradead.org, colyli@suse.de, darrick.wong@oracle.com, clm@fb.com, bacik@fb.com, linux-xfs@vger.kernel.org, drbd-dev@lists.linbit.com, linux-btrfs@vger.kernel.org, linux-raid@vger.kernel.org, neilb@suse.com Subject: Re: [PATCH 00/13] convert block layer to bioset_init()/mempool_init() Message-ID: <20180521143132.GB19194@redhat.com> References: <20180520222558.7053-1-kent.overstreet@gmail.com> <20180521140348.GA19069@redhat.com> <686d7df6-c7d1-48a6-b7ff-48dc8aff6a62@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <686d7df6-c7d1-48a6-b7ff-48dc8aff6a62@kernel.dk> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Mon, 21 May 2018 14:31:36 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Mon, 21 May 2018 14:31:36 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'msnitzer@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 21 2018 at 10:19am -0400, Jens Axboe wrote: > On 5/21/18 8:03 AM, Mike Snitzer wrote: > > On Sun, May 20 2018 at 6:25pm -0400, > > Kent Overstreet wrote: > > > >> Jens - this series does the rest of the conversions that Christoph wanted, and > >> drops bioset_create(). > >> > >> Only lightly tested, but the changes are pretty mechanical. Based on your > >> for-next tree. > > > > By switching 'mempool_t *' to 'mempool_t' and 'bio_set *' to 'bio_set' > > you've altered the alignment of members in data structures. So I'll > > need to audit all the data structures you've modified in DM. > > > > Could we get the backstory on _why_ you're making this change? > > Would go a long way to helping me appreciate why this is a good use of > > anyone's time. > > Yeah, it's in the first series, it gets rid of a pointer indirection. "Allows mempools to be embedded in other structs, getting rid of a pointer indirection from allocation fastpaths." So this is about using contiguous memory or avoiding partial allocation failure? Or both? Or more to it? Just trying to fully appreciate the theory behind the perceived associated benefit. I do think the increased risk of these embedded bio_set and mempool_t themselves crossing cachelines, or struct members that follow them doing so, really detracts from these types of changes. Thanks, Mike