Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp553583pxk; Wed, 23 Sep 2020 09:45:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRHJkRDNGu7Ijv3UCSOFoPcw0CEgiTU4riLHxHTzHaMOMykvUXG8zPzkTBXNJsF1QsDDEj X-Received: by 2002:a50:fb18:: with SMTP id d24mr183848edq.149.1600879522709; Wed, 23 Sep 2020 09:45:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600879522; cv=none; d=google.com; s=arc-20160816; b=ARlhgHcl9HfdlP7Ord11Zu8D0BzKmcHkgSTs/FojV+LCtDUGRNZACpYUcQON/eRB5C QcBgoDvWMCorP1+bUNPOun3rcT8sM6aW33rFakHO0tH7vQ7I6oycEArZvdbYdBeP5dLn FPxOu5JVuI1ZN6LZ5w8kPVOWMBQftw6cOgrDLWGYSAnL+0um5wBDTN89wl0MB2QidD3L FW7OG5893Q5Zr4OuPhkREpxUYyJLtkwcWGSEOFD6pqwD/flC85MLAp1L2HbmjiaSDphf dZYj7m+Q1gBaIJ2DfvuB2edK6HpzDKeVz9mhX7Nbx/oYLOFesA7d99ejLDjQxziJgJCC MaAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=9kKVBm2QDcEhoI7VNH0u9uwqsgFbX84K7to4q+EvAF8=; b=g97QZNkrytAcXcFaz9AVVw1bEUM+l+K9/fmm2kepP2gDjjyH4tyQQGuhWPlk+KzIjP 7Ao2itfDGANxNJTslz0PXlPhpIJA5TVYVYDBaPfrbfQnUt1M4lXwgPs6BAEOABc/pxRN L5qLCeaJW30U8ntqvFyuglmRU6RBimV2YwyDzlHigg+l6oYBbCOBT0DP0urcVtXC6dTs 88zjVeaaIOWbFGgeo38DfZzI3a4DrEk5gDH0BLamJi048ZTt4/vEDUJnZYM++K8HWl/W ERmuKFMpxX38s8ErtH+t9uTGPD/AdeYO2s7IkKa3fUqEtKxylnowhD91+1agbYYoQDOz 6AUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=wo1HxCm5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c9si231453edr.568.2020.09.23.09.44.59; Wed, 23 Sep 2020 09:45:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=wo1HxCm5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726751AbgIWQoA (ORCPT + 99 others); Wed, 23 Sep 2020 12:44:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726476AbgIWQn7 (ORCPT ); Wed, 23 Sep 2020 12:43:59 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9993FC0613D1 for ; Wed, 23 Sep 2020 09:43:59 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id u24so66364pgi.1 for ; Wed, 23 Sep 2020 09:43:59 -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=9kKVBm2QDcEhoI7VNH0u9uwqsgFbX84K7to4q+EvAF8=; b=wo1HxCm5bKIVa9so0OH72jUPeuxpy0gBmSztrnAMX5SSm8gqDsd/uDbJD7n0nTY7Hv CKJoObg/EBB1JCvStmCq+2DKeNopjuTxhY6T7yv5TlzOVOSgvtBEy4neG07it4ARoA4J WHOi+7obrEMIUDmzT3kBBEHLDf0ZbrbNxMoUwtAnQnNZ4qwV/A1Mq5PJhKVbgpJ/Rod5 V4wdCnvNPJU0KSWHIs05KbU5DxoLhNDG93YaWxwBm6g7XccmnyHw+ixRtSpxeaSGMhwd mx1/GOsS6pG7kDo6kprXjUbJ/6H+1rzHGTrQ7trw2dp1Uk7jyzCH8F6put7clvS8xmh3 DueQ== 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=9kKVBm2QDcEhoI7VNH0u9uwqsgFbX84K7to4q+EvAF8=; b=XbulCCJ+m4ChvbxSooWZym/nCZwlscmwGpE8IhWIoNMD1saz0gbC4DZKFwV/kDDhWC r/lXGMwiXRH0x9esZ/DYg3VG8x2jK4Kw+V5ixCKKYMMF5X+Jdjxn0Z4G5t/YJhmu8eR1 7bxbEKUzYreWHgSxN99xrdqAvmq29ePXj6peGA6BLusw7xUuUK30cFrrMXiGztGbw5gm pbL1gBG0jqLni9SfUO+lQl72UxaTfr0T3dTJUKyA5HhRejQMzlo6AfLiSyy47YMOmZ8n leeBW/qLJVl6JEZnUdXsj8VfQDVunuhbICCd/akj7UKpo4nIxt5abzzADqg0godosKp1 iRNQ== X-Gm-Message-State: AOAM530Ij8D9z9eagOmIgIGUGB7TtGAFo0oIhD8Jedn6XprgB29IJZXr tFt9Vgc8N+P7ARwm1Cckh7lvWw== X-Received: by 2002:a62:2b52:0:b029:142:2501:39e9 with SMTP id r79-20020a622b520000b0290142250139e9mr746426pfr.56.1600879439083; Wed, 23 Sep 2020 09:43:59 -0700 (PDT) Received: from [192.168.1.30] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id q190sm241046pfq.99.2020.09.23.09.43.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Sep 2020 09:43:58 -0700 (PDT) Subject: Re: remove blkdev_get as a public API v2 To: Christoph Hellwig Cc: Josef Bacik , Minchan Kim , Stefan Haberland , Jan Hoeppner , Joseph Qi , "Rafael J. Wysocki" , Pavel Machek , Len Brown , Andrew Morton , linux-kernel@vger.kernel.org, nbd@other.debian.org, linux-ide@vger.kernel.org, linux-s390@vger.kernel.org, linux-fsdevel@vger.kernel.org, ocfs2-devel@oss.oracle.com, linux-pm@vger.kernel.org, linux-mm@kvack.org, linux-block@vger.kernel.org References: <20200921071958.307589-1-hch@lst.de> From: Jens Axboe Message-ID: Date: Wed, 23 Sep 2020 10:43:57 -0600 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: <20200921071958.307589-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-kernel@vger.kernel.org On 9/21/20 1:19 AM, Christoph Hellwig wrote: > Hi Jens, > > this series removes blkdev_get as a public API, leaving it as just an > implementation detail of blkdev_get_by_path and blkdev_get_by_dev. The > reason for that is that blkdev_get is a very confusing API that requires > a struct block_device to be fed in, but then actually consumes the > reference. And it turns out just using the two above mentioned APIs > actually significantly simplifies the code as well. > > Changes since v1: > - fix a mismerged that left a stray bdget_disk around > - factour the partition scan at registration time code into a new > helper. Applied for 5.10, thanks. -- Jens Axboe