Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4634403ybc; Tue, 26 Nov 2019 12:03:45 -0800 (PST) X-Google-Smtp-Source: APXvYqzzLj4Aqo3lA9HYB+o7jf8nB25Z23/yi5NNQZJoSYcguEGpQ6wzZgHR7kG9bPuOwxBOZE0N X-Received: by 2002:aa7:d45a:: with SMTP id q26mr4662291edr.158.1574798625582; Tue, 26 Nov 2019 12:03:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574798625; cv=none; d=google.com; s=arc-20160816; b=rJHS2ybq7AzFofXrJU7GsL6TUTF8Yqj4SR4pSh0FzZd0KLR9Q3P6Z8tvDP+7DhFLmo U9bGf9c5pxOItOlZRnVnvArophkFdC4ktSpQU2FakaQiDCWeEEC5wOek27g5ibVwpsrm TPSN2gLHr3FEq33DM3UqZW7D6bDkXMVCj0yj3uWHmbHkX3JY4ZjLY6XbcgpQkbXMP0Wd xvjXd0P+PP0xna+SarWvbW117FSRBFRi9uGoiAvYpeVBGxgG9dRa/2W0x2qHsqRm2S2P 1sIhKHQ65YH7ctAEmb+iN93bh99JUA8jImnIxwtT+lZv9RKglh6itF1gFy8QznP/PhHc Rjgw== 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; bh=b4nMYyMZLdJTu1lsp2vJ7LJSFFbPniRCr7vgs74sWbM=; b=Q1pTK2lOtwr/bs7tx4eqmGzE8goeMGwsnqaDeUzG6em0NWgPcBl/H2m215IQh5QITQ hfw8Zc09E6ioFGAlWUUGUGtPotLRWAwLJfBprEGm37ERsnn2iP19t+MVQ/HOxL8snufz yReEGJZ8EfD2OhcP5a+GnoUC6Xi5q+osyAdutXZZE5fCl8pRsWzwbzkEsqLAVFaB3E7F nwxAdCFGhk+1FFGRT9OtRS7gjTU4T+7nArJNfNiG516bWFa5f1lW0pm3CyyGrekGJDCY 6JLi1kDvJZzMciVu/92iAYc7bYLRoX1szLOMzM3s2W3yJ+ZZpAcXFtxa1HXeqsMNU+oF 1cYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=jCteqbHZ; 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 cx12si9608675edb.184.2019.11.26.12.03.20; Tue, 26 Nov 2019 12:03:45 -0800 (PST) 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=jCteqbHZ; 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 S1726984AbfKZUBr (ORCPT + 99 others); Tue, 26 Nov 2019 15:01:47 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:40492 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726571AbfKZUBr (ORCPT ); Tue, 26 Nov 2019 15:01:47 -0500 Received: by mail-pl1-f193.google.com with SMTP id g6so255928plp.7 for ; Tue, 26 Nov 2019 12:01:47 -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=b4nMYyMZLdJTu1lsp2vJ7LJSFFbPniRCr7vgs74sWbM=; b=jCteqbHZIlDVKF77LxJogeNq0ChJQpDzdTb8SfTvrCSoky7CKHFC5o66x3Zac7V8Le MEUvAWyMsK6FMcJCKQtGwCCokHpV3OerEo8C0oirA53k+b4rVilYguFTDSJhQZ2Z+neu gzViq+zCV8nrResRpHBZTSyXMgC+g7NoK4DFuziDj56v4GXPPhtTczkSSEmUPDWPpMq1 2mRCJTWA0J/IOK9OqwV9LvDqq47Cu99zA7MaT9Symp+NotD+Yg+yHhdlNFtD7EcwQ60z tcXHCUfMGMxyqC8l8J7MIGI5P7js1NCrFu99jSix84tf0ba9h0yWl7xRB4lx81SK8YMM qpsw== 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=b4nMYyMZLdJTu1lsp2vJ7LJSFFbPniRCr7vgs74sWbM=; b=pMvBtUN5NNfDI6LtZ60Ni1rwKMSiwtswPUET84YeyWm6xeGrdzyAJ82nhHdbp0g3SD 9bJLj2DXUomZOBVC5F7mVrtchn3UTUvKih02o0dqqaEIdPLaXm297IPpZukqzqGndN8I 3w7mrrfi1Hqd8NVZjZ5zLQRqp5kdsKkf1WUD/E1J4I9g1JX21TfXr3Kej7BJ8IAYfpbF oTd4I0TPL6gLIgGcRNcvpS569eNNDsW+GqTN84yGmrHr79r+wXYGaMFkBqxi7KWARt7q Iczh2ZffxlUrZwRjpZRItSZBX1QYqXi4qq9ju24kNCo/6EgdJ0cuF1NgqKINGR0uOK6/ ARcw== X-Gm-Message-State: APjAAAVApzEceiCYsgc8968pUJarAoKU+pgTL5ftx3FvA1xDlCd0I/iO zgRF7ML0P2IPU0B5Uz3hjyjpNw== X-Received: by 2002:a17:902:b101:: with SMTP id q1mr105469plr.154.1574798506461; Tue, 26 Nov 2019 12:01:46 -0800 (PST) Received: from [192.168.1.188] ([66.219.217.79]) by smtp.gmail.com with ESMTPSA id u24sm13371114pfh.48.2019.11.26.12.01.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Nov 2019 12:01:45 -0800 (PST) Subject: Re: [PATCH v4 rebase 00/10] Fix cdrom autoclose To: Michal Suchanek , linux-scsi@vger.kernel.org, linux-block@vger.kernel.org Cc: Jonathan Corbet , "James E.J. Bottomley" , "Martin K. Petersen" , Alexander Viro , Eric Biggers , "J. Bruce Fields" , Mauro Carvalho Chehab , Benjamin Coddington , Ming Lei , Chaitanya Kulkarni , Bart Van Assche , Damien Le Moal , Hou Tao , Pavel Begunkov , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Jan Kara , Hannes Reinecke , "Ewan D. Milne" , Christoph Hellwig , Matthew Wilcox References: From: Jens Axboe Message-ID: Date: Tue, 26 Nov 2019 13:01:42 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: 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 11/26/19 12:54 PM, Michal Suchanek wrote: > Hello, > > there is cdrom autoclose feature that is supposed to close the tray, > wait for the disc to become ready, and then open the device. > > This used to work in ancient times. Then in old times there was a hack > in util-linux which worked around the breakage which probably resulted > from switching to scsi emulation. > > Currently util-linux maintainer refuses to merge another hack on the > basis that kernel still has the feature so it should be fixed there. > The code needs not be replicated in every userspace utility like mount > or dd which has no business knowing which devices are CD-roms and where > the autoclose setting is in the kernel. > > This is rebase on top of current master. > > Also it seems that most people think that this is fix for WMware because > there is one patch dealing with WMware. I think the main complaint with this is that it's kind of a stretch to add core functionality for a device type that's barely being manufactured anymore and is mostly used in a virtualized fashion. I think it you could fix this without 10 patches of churn and without adding a new ->open() addition to fops, then people would be a lot more receptive to the idea of improving cdrom auto-close. -- Jens Axboe