Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp497975imm; Mon, 21 May 2018 09:21:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZonfXBpgb5dR59bQL/oGJjTZdeY6LKDqeug5putVt6hiu66rzi9sG8AUyC7bvdpJt4xCdYY X-Received: by 2002:a63:b601:: with SMTP id j1-v6mr12820939pgf.335.1526919686342; Mon, 21 May 2018 09:21:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526919686; cv=none; d=google.com; s=arc-20160816; b=Ge7SSD2jIDj5GSC4AFtptKO1r8yNDrlNTc9qI/G/Htl26+B1q/JEdWSzL1OaJtbRry M11zKvX0AuTP2aWvgaouHVT+eJ3L2G/S1GOW3Ge/In92+QIQU7zLUwYksdVGvsS6xhTb VT8EETW00EJ57S0ABewz0eD/zKoJ5T44y01zk3n7dOH3JHrfi3Ca7r/dvK5ipEaZTrs6 Wc4z0thfqhQJLwml6zEM1mkdxfGlUIac3Yft+rVxj8tTn5ff5Uh1VSOBXHJ9OaYKzIV9 JAZ9rpaYUArX5dn4ngtsvPgXwlvlSffnq/0zXwXpDU0h/xcTCKoWnWrwzG6alukQI3i3 r0dw== 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=48xwS4lKIndRXtCeyxckHk6aiuDsalnXkP+tcu42ttk=; b=kQ4Aai4LrejAa67HdYNWUZUIevzj7Jsj4AEGu/0iRxMNo69t9Qpkqmylu3B53eO/4e vfd+GxLCgmy3DlveGBl7Kttzv89LopCZMufsQ2emDKgsz9eJmm/JSDNHTKNKAGl1kGfF UCvU0iXXOK3lJShBTWipP3PODYtfjTXNPf2xYlzSjeqtUHzkIOf5KuSAaZvQZ/9iMj4y I7GokbDlVzCi1M/WYedvVmMUf/aZXUWhMCfXC485TmtEDHMs4223mlMcVTFA4QBqfUA2 u4SFGLc4/kipDF22kxS0/vxRUTXtVE5mvnDFDQYzj7RsOmzu+m8Ff7yG8mf7oGnw5Ysg VKEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=L8wkYgV1; 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 a13-v6si14713501pfd.338.2018.05.21.09.21.10; Mon, 21 May 2018 09:21:26 -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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=L8wkYgV1; 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 S1753155AbeEUQU6 (ORCPT + 99 others); Mon, 21 May 2018 12:20:58 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:53189 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752825AbeEUQUv (ORCPT ); Mon, 21 May 2018 12:20:51 -0400 Received: by mail-it0-f65.google.com with SMTP id y189-v6so21706893itb.2 for ; Mon, 21 May 2018 09:20:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=48xwS4lKIndRXtCeyxckHk6aiuDsalnXkP+tcu42ttk=; b=L8wkYgV1SRKnXyHlkZdGoOsDr8cFAldM6SfdsWNG7j7LAwHcxPEJl/qClWb+0KRWAm EU4+yIF5gpMYxWfmopiJ5m+i7XxzQDB7qq/neg4ODgU0WQ2WWcxnsjEwUpQQh4vl7gZF iKvkCpS3owCu0HdvZjxdzh8jP41SJNwYA7bNyiS0IRUQsnbQuJGduE9f9QCOd9SH0vSb IDmxZg8cocxHOtKmGjaiiKua1rUfUbR/kDCIOM62nDlZJk+3jHo62kedxPM7r++tLOcj r62SCocDb1u+9iD/vUBw8LTtFDvs2nk/CuHsyBg+4pdkNLX8MVMo0xahvIUvg52oduTz EP5Q== 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=48xwS4lKIndRXtCeyxckHk6aiuDsalnXkP+tcu42ttk=; b=godqEb4R5EvmTP+ZQTGYcjzaR/97lbpAQYEgW3tkZqa46hEKRO/18vcT7zNg6URfCu y+FcOSZFHYEdXiNEb/Sny1C4OI/XiFuH4zzcSAzKB2Ie8n/fdhaqSsSYe6VHZ+QUKsXR hDF1aZ89A/d86t6m5IlRF3pf+7cLhtYxL4cFuSvM8QVRu/jWXHGPDgdk2c2P35VLS9i1 7Pf/vpgOuofMabt4xkHzg+myLNgtZ2g0LhY6xr7uHP2bbM7N7dL0dx5Fv4X6GqUHqs3b 3JyUqHyad0Tqyyd69bdpLGsSsdD3qk0Sht+PqbwVHqJPFnp0VAn3wN9Spaaw2yVTYEz6 lkEw== X-Gm-Message-State: ALKqPweTrMEDZPHIPzt9CiB1+krEF5j/x/hWrKQadlszl/iVtBc3Dq48 yk19Vfdcs5Z48yugCDWGidAEBw== X-Received: by 2002:a24:3387:: with SMTP id k129-v6mr19358198itk.68.1526919650265; Mon, 21 May 2018 09:20:50 -0700 (PDT) Received: from [192.168.1.167] ([216.160.245.98]) by smtp.gmail.com with ESMTPSA id k14-v6sm8557685iok.10.2018.05.21.09.20.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 May 2018 09:20:48 -0700 (PDT) Subject: Re: [PATCH 00/13] convert block layer to bioset_init()/mempool_init() To: Mike Snitzer 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 References: <20180521140348.GA19069@redhat.com> <686d7df6-c7d1-48a6-b7ff-48dc8aff6a62@kernel.dk> <20180521143132.GB19194@redhat.com> <2bbeeb1a-8b99-b06a-eb9b-eb8523c16460@kernel.dk> <20180521144703.GA19303@redhat.com> <4b343aef-e11c-73ba-1d88-7e73ca838cad@kernel.dk> <20180521150439.GA19379@redhat.com> <61e30dcf-a01c-f47d-087a-12930caf9aef@kernel.dk> <20180521151817.GA19454@redhat.com> <20180521160907.GA19553@redhat.com> From: Jens Axboe Message-ID: Date: Mon, 21 May 2018 10:20:47 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180521160907.GA19553@redhat.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 5/21/18 10:09 AM, Mike Snitzer wrote: > On Mon, May 21 2018 at 11:36am -0400, > Jens Axboe wrote: > >> On 5/21/18 9:18 AM, Mike Snitzer wrote: >>> On Mon, May 21 2018 at 11:09am -0400, >>> Jens Axboe wrote: >>> >>>> On 5/21/18 9:04 AM, Mike Snitzer wrote: >>>>> On Mon, May 21 2018 at 10:52am -0400, >>>>> Jens Axboe wrote: >>>>> > ... >>>>>> IMHO you're making a big deal out of something that should not be. >>>>> >>>>> I raised an issue that had seemingly not been considered at all. Not >>>>> making a big deal. Raising it for others' benefit. >>>>> >>>>>> If the dm bits are that sensitive and cache line honed to perfection >>>>>> already due to previous regressions in that area, then it might >>>>>> not be a bad idea to have some compile checks for false cacheline >>>>>> sharing between sensitive members, or spilling of a sub-struct >>>>>> into multiple cachelines. >>>>>> >>>>>> It's not like this was pushed behind your back. It's posted for >>>>>> review. It's quite possible the net change is a win for dm. Let's >>>>>> focus on getting it reviewed, rather than pontificate on what >>>>>> could potentially go all wrong with this. >>>>> >>>>> Why are you making this personal? Or purely about DM? I'm merely >>>>> pointing out this change isn't something that can be given a quick >>>>> blanket "looks good". >>>> >>>> I'm not making this personal at all?! You raised a (valid) concern, >>>> I'm merely stating why I don't think it's a high risk issue. I'm >>>> assuming your worry is related to dm, as those are the reports >>>> that would ultimately land on your desk. >>> >>> Then we'll just agree to disagree with what this implies: "It's not like >>> this was pushed behind your back." >> >> I'm afraid you've lost me now - it was not pushed behind your back, >> it was posted for review, with you on the CC list. Not trying to >> be deliberately dense here, I just don't see what our disagreement is. > > You're having an off day ;) Mondays and all? > > I just raised an alignment concern that needs to be considered during > review by all stakeholders. Wasn't upset at all. Maybe my email tone > came off otherwise? > > And then you got confused by me pointing out how it was weird for you to > suggest I felt this stuff was pushed behind my back.. and went on to > think I really think that. It's almost like you're a confused hypnotist > seeding me with paranoid dilutions. ;) > > /me waits for Jens to snap his fingers so he can just slowly step away > from this line of discussion that is solidly dead now... Mike, wtf are you talking about. >>> Reality is I'm fine with the change. Just think there is follow-on work >>> (now or later) that is needed. >> >> It's not hard to run the quick struct layout checks or alignment. If >> there's a concern, that should be done now, instead of being deferred to >> later. There's no point merging something that we expect to have >> follow-on work. If that's the case, then it should not be merged. There >> are no dependencies in the patchset, except that the last patch >> obviously can't be applied until all of the previous ones are in. > > Cool, sounds good. > >> I took a quick look at the struct mapped_device layout, which I'm >> assuming is the most important on the dm side. It's pretty big to >> begin with, obviously this makes it bigger since we're now >> embedding the bio_sets. On my config, doesn't show any false sharing >> that would be problematic, or layout changes that would worry me. FWIW. > > Great, thanks, do you happen to have a tree you can push so others can > get a quick compile and look at the series fully applied? I do not, I simply ran a quick analysis of the layout, then applied the full patchset, and repeated that exercise. Literally a 5 minute thing. I haven't applied the series, so haven't pushed anything out. > BTW, I'm upstream DM maintainer but I have a role in caring for related > subsystems (e.g. block core, etc) in downstream releases.. *cough* RHEL. > So this alignment concern wasn't ever purely about DM. I tend to care about that too... -- Jens Axboe