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=-2.3 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 04B3FC4724C for ; Mon, 4 May 2020 16:42:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CE72320707 for ; Mon, 4 May 2020 16:42:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20150623.gappssmtp.com header.i=@kernel-dk.20150623.gappssmtp.com header.b="lYYSqhAO" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729790AbgEDQmJ (ORCPT ); Mon, 4 May 2020 12:42:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729777AbgEDQmJ (ORCPT ); Mon, 4 May 2020 12:42:09 -0400 Received: from mail-io1-xd43.google.com (mail-io1-xd43.google.com [IPv6:2607:f8b0:4864:20::d43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05327C061A10 for ; Mon, 4 May 2020 09:42:09 -0700 (PDT) Received: by mail-io1-xd43.google.com with SMTP id j8so8770530iog.13 for ; Mon, 04 May 2020 09:42:08 -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=bOO31zCyp7KWzFdVhclDF5PA/avMx0uxJp6+DDvlojY=; b=lYYSqhAOi/YBrHI6goaVk9aafelTnt0zZWWXUtzSeOKygT6Drldsfb+EoH7afX5zLF 7PTVJqxtJikt317tIgoNlX4FUDKLxBBUUvHvV2pmmtmErt6Nbn3NfYLNOofBx/HQ+18w dGafc6oz0Kp6cWAaKe+ImIvB82LPU0bTiowCzu0UyRROSwJANGJqH9FG8xzC4cFdSpZt Wx91opcI6r5kt7DdLsZ3oHILrh9mznVIMMSLIKca0Vrt1Wg/JeljWb0r9MAckHZpJpr5 RMUq4tpRefSQyu7V/+oXe98n149PACi9LaZbPf99z7mdmBDkGqBJXP1mnuZdhRzrgNMz 4kmw== 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=bOO31zCyp7KWzFdVhclDF5PA/avMx0uxJp6+DDvlojY=; b=tzgh9jcgico8HMp9KrDJo3Wkn2lfAlxFu/xar8B9v2uvgDgOhCkg+/k4VVO4wkIqv0 VYoXUViI2I0sLMeILBmexp6034Ge4O5fxj5amFxO6UJvc7yfuVeq0o7kTKuACg2fjq/1 gg7Q36dQ/Ot3mlnXK1Ky2V0hy1ZOeqmiMXnEceh+BGf+MMbUj6bZMcdKM07pFRiWv827 bRmW4/qAeezvvUdMLJz2KyAdDXg09nUjBc+zdkcson675bM7BTc1YUSH074GhYcqZ+zX gbv+kn7u5KGgDqS9hrXRUG78GCOncSQav/Qbb23HwyZAMczmgHVQU5RteKyfm4K9ZE7f Tflw== X-Gm-Message-State: AGi0PuZ35jsmMKFDGpb4XACfLkQzbOVRiZ3tf/0JEk1fEM7M+seN6NpR wLCdp/hgEJWDPBlvmuqj3KKHaw== X-Google-Smtp-Source: APiQypLXsv27U+YtINVyuWix6toSeHFvCR2e8RbWxck6ha2hn+n5FFfAbC4zwwBY5vbf0r/EquXz9A== X-Received: by 2002:a5e:c814:: with SMTP id y20mr16153088iol.135.1588610528387; Mon, 04 May 2020 09:42:08 -0700 (PDT) Received: from [192.168.1.159] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id y15sm5378378ilg.21.2020.05.04.09.42.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 May 2020 09:42:07 -0700 (PDT) Subject: Re: stop using ioctl_by_bdev for file system access to CDROMs v2 To: Christoph Hellwig Cc: Tim Waugh , Borislav Petkov , Jan Kara , linux-block@vger.kernel.org, linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200425075706.721917-1-hch@lst.de> From: Jens Axboe Message-ID: Date: Mon, 4 May 2020 10:42:07 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200425075706.721917-1-hch@lst.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org On 4/25/20 1:56 AM, Christoph Hellwig wrote: > Hi Jens, > > except for the DASD case under discussion the last users of ioctl_by_bdev > are the file system drivers that want to query CDROM information using > ioctls. This series switches them to use function calls directly into > the CDROM midlayer instead, which implies: > > - adding a cdrom_device_info pointer to the gendisk, so that file systems > can find it without going to the low-level driver first > - ensuring that the CDROM midlayer (which isn't a lot of code) is built > in if the file systems are built in so that they can actually call the > exported functions > > Changes since v1: > - fix up the no-CDROM error case in isofs_get_last_session to return 0 > instead of -EINVAL. Applied for 5.8, thanks. -- Jens Axboe