From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A466C433E6 for ; Mon, 25 Jan 2021 16:25:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 37A0D22A84 for ; Mon, 25 Jan 2021 16:25:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730744AbhAYQZK (ORCPT ); Mon, 25 Jan 2021 11:25:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729752AbhAYQYq (ORCPT ); Mon, 25 Jan 2021 11:24:46 -0500 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44708C0613D6 for ; Mon, 25 Jan 2021 08:24:06 -0800 (PST) Received: by mail-pj1-x102f.google.com with SMTP id md11so8718720pjb.0 for ; Mon, 25 Jan 2021 08:24:06 -0800 (PST) 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=fXfkMAEQ+Munc2QVdjGnmLY18me6kBjN2JpuXybmej8=; b=melUhKvefiahTWBZSTKnTQngCuLKRwnWefzG8XCrqod+qu6V+whvzgVbndvXcGW1nO LxBQ+exeD5hag1d5iYB8naQfZY4cxiHbHgkUyoXcpFy3pIyk+EdGzNfiSZmUVzdZu7mR 8vcZimLHfgSMwehelNQYJnbCqWJ5+aXM1UBAA3pvwyL5o10YuTGKRq1Mb+onVYA5X5eh J217+Wc3qyJEBUDkRVfOCj4J44rCBjHroAocrNVibYZ718Gm9WEmExM5pIhjGp2ZCbaE yJs/OVNHe6RTrlruJEOrM9kkYU2IHim66Ngv64asDPXaHnH2u0UOtKLzWbptyFjWn/vj Fo8w== 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=fXfkMAEQ+Munc2QVdjGnmLY18me6kBjN2JpuXybmej8=; b=dblf1d1VvyT0nmHgvw/f/7ZsDt2dOwDLqoVfp8+ZRB4u5ileMwFhxTFqhTe9RCb+BW 0Wf4Gz88FU+2pfNdnxoF5/SHoQ4UfnwE4LMvdDsXR9lCQTk98nBJVmGl806vUZSF6ll6 VX5y9i5VZJDfYUJG/SEB+4xMWT8jg5zuCcTVlzLf4/2dfu7aD38P6Ckdx4KBHN9CvHhS AM21n0sCrx59+CXx3J2q5qfoQvnIy8xyzzUfcvkcjU708Q2vFYkzifHybA/WqlunKgDR XDJ8BdxHpRgskrfzfSlAkmIFehUxpUANqrVA9BhBxBKmfEE+mvQRMgBRrSf9ijrNKOvO k3AA== X-Gm-Message-State: AOAM532uHjeX/IgTkN0JLPXydt6lSdISF9g3r2CR7d3guS8wDSndlyFY UVU9xRLQOEQEn0+sGHP14I+2uA== X-Google-Smtp-Source: ABdhPJyZ7TqSW5vYzS6sR2enGCQzoNcpXGNgER6vx3ER9uTn7PeFaeI8bJWpz6MeQxBxo7yasuILmQ== X-Received: by 2002:a17:90b:908:: with SMTP id bo8mr987716pjb.206.1611591845774; Mon, 25 Jan 2021 08:24:05 -0800 (PST) Received: from [192.168.4.41] (cpe-72-132-29-68.dc.res.rr.com. [72.132.29.68]) by smtp.gmail.com with ESMTPSA id gd11sm19028097pjb.16.2021.01.25.08.24.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Jan 2021 08:24:05 -0800 (PST) Subject: Re: store a pointer to the block_device in struct bio (again) v2 To: Christoph Hellwig Cc: Tejun Heo , Coly Li , Song Liu , dm-devel@redhat.com, linux-bcache@vger.kernel.org, linux-raid@vger.kernel.org, linux-s390@vger.kernel.org, linux-block@vger.kernel.org References: <20210124100241.1167849-1-hch@lst.de> From: Jens Axboe Message-ID: <86dd18e9-43e9-efe5-8445-88952a95b5d8@kernel.dk> Date: Mon, 25 Jan 2021 09:24:03 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210124100241.1167849-1-hch@lst.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-bcache@vger.kernel.org On 1/24/21 3:02 AM, Christoph Hellwig wrote: > Hi Jens, > > this series switches back from storing the gendisk + partno to storing > a block_device pointer in struct bio. The reason is two fold: for one > the new struct block_device actually is always available, removing the > need to avoid originally. Second the merge struct block_device is much > more useful than the old one, as storing it avoids the need for looking > up what used to be hd_struct during partition remapping and I/O > accounting. Applied for 5.12, thanks. -- Jens Axboe