Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2832364ybg; Thu, 24 Oct 2019 16:13:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWsedAzF5vrUBt1PXI5/K9hU/IGJvwFvc17I8xLvDQ78K67vRJHlHgz7emsBJeQ8Vi/+He X-Received: by 2002:a50:f744:: with SMTP id j4mr724467edn.73.1571958793718; Thu, 24 Oct 2019 16:13:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571958793; cv=none; d=google.com; s=arc-20160816; b=F/7beskn4G+UKXcnpWaxVda3bVcvLwPwFano5y5U9YRKXxufFBZ4FzImoS8Z9ROh4/ 6/P/D8yQrWr3gVcTv5kS+aJ0eGDFk85NWJFsvyxZ70x3DP636e0BvvD5Hhey+qSalKMw zyBW46co8aq3gfErunNOjL26dJnwjKJpCjMoYHyKeOaVKWfLSe/7+IeGWexHD+YWwmyV OU0otb0Z7EM2asf/wKTopF7/M4fgwDwV6+/TG1lKc39OrY4C2rQAPZ0Wcnnllv+OR/Y8 GzUn8y55zjhOT1fALI5Eukg4oAIltGWO1plGNMNh311C7kpEM8eX54ZPzkd4VA4a8n95 8clA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=lNGsB/DOSyr49/89+JtOmJv9rv5FBHTX7DGOcvGIAyo=; b=x3Q0JlNmJLHvFYw/qIR726mCqgnJwBeeNQbZqisyoPWZiNAXV3/wlplNGFVhCrG8/n jHDn3io0nWozeuCoEv4jcL5YiBI1Y248B1gvBbadryAtpXOGdhuPu06TbJDBpBgz2ofe Sh0nzOLxMh00o26WuALZAo/eXyRFCuCemCrdyJK7d86HXz32MmFvzTlbUuCy+r8O54nR uQP6/o9mY3i1heVBEKTIhyYI8Wrh3Rmfv5bUCZ0yVmsFedJiESHqNH/X80oYJ7224BGL 49EGxq5JPzcAZGNxPzRYFVJ/YzmMZJGB79VE4NdVicD7Ocm5oq/C5m40PfZ7Eyl637NO kRvg== ARC-Authentication-Results: i=1; mx.google.com; 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 5si29308edy.95.2019.10.24.16.12.49; Thu, 24 Oct 2019 16:13:13 -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; 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 S1732266AbfJXIxc (ORCPT + 99 others); Thu, 24 Oct 2019 04:53:32 -0400 Received: from mx2.suse.de ([195.135.220.15]:53402 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730294AbfJXIxb (ORCPT ); Thu, 24 Oct 2019 04:53:31 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id B3B83B642; Thu, 24 Oct 2019 08:53:29 +0000 (UTC) Date: Thu, 24 Oct 2019 10:53:27 +0200 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: Christoph Hellwig Cc: linux-scsi@vger.kernel.org, Jonathan Corbet , Jens Axboe , "James E.J. Bottomley" , "Martin K. Petersen" , Alexander Viro , Mauro Carvalho Chehab , Eric Biggers , "J. Bruce Fields" , Benjamin Coddington , Hannes Reinecke , Omar Sandoval , Ming Lei , Damien Le Moal , Bart Van Assche , Tejun Heo , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v2 7/8] scsi: sr: workaround VMware ESXi cdrom emulation bug Message-ID: <20191024085327.GH938@kitsune.suse.cz> References: <20191024022307.GC11485@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191024022307.GC11485@infradead.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 23, 2019 at 07:23:07PM -0700, Christoph Hellwig wrote: > On Wed, Oct 23, 2019 at 02:52:46PM +0200, Michal Suchanek wrote: > > > > The drive claims to have a tray and claims to be able to close it. > > However, the UI has no notion of a tray - when medium is ejected it is > > dropped in the floor and the user must select a medium again before the > > drive can be re-loaded. On the kernel side the tray_move call to close > > the tray succeeds but the drive state does not change as a result of the > > call. > > > > The drive does not in fact emulate the tray state. There are two ways to > > get the medium state. One is the SCSI status: > > Given that this is a buggy software emulation we should not add more > than 100 lines of kernel code to work around it. Ask VMware to fix > their mess instead. And never hear back from them. Not to mention the installed base of already buggy servers. Thanks Michal