Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3635760ybg; Fri, 25 Oct 2019 06:56:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqyN5nsw6FFYxtFvwRcgDLsRRAxHXO8obhw1Z8pCEyVO3bWYvu7tqJQrQahxmg3S2Zsl7eEc X-Received: by 2002:a50:9353:: with SMTP id n19mr4136047eda.258.1572011764584; Fri, 25 Oct 2019 06:56:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572011764; cv=none; d=google.com; s=arc-20160816; b=BOFNIDlP/y2kHXpIPahjnTXkPzLOZ1li1EYpO87Y67/JL6JFjKXa4/cVyGUiX6zKeM Vb7lKiflBxEinaRlU1Kldskz6qPgBy9YFG3g5dRWjNDMdzOGot3et6vVs9EB3hB/wtVV XJozn69gKxGRQ8to8R0aCGBjDCCBkNSwtyCwHMoPVU1Ek+8zpHoF6UiX4IURSynqXvYB 5T1MRjj5xZKgUQtejeoatngIRU4ViyRRoi1pyy1jR/IY4MkMBf0tImxPiD9iEztz+vty d9GCW4P3dmUkfFdI4p0kVQ2825ExlN9l90jleDPhVcNB3re0nHV3JNQ94oe2LT39SaHP wOgA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Ytz4euQ3Q9IiQz4tzDOyqx9l5irsf3dHQZgptwpBWK4=; b=AFRL59xUIBuBt5Emgsm1p5a0QgWI1w+dnuiNeiLNAUPD9k7h7HyJ2MtXignYbGHCfj 7uYZ4G2QEfaScDJuu1iPldiuX7atU5rX9HW2n0tullcUm/SQnQ/A3A/FlVe5U2oWIxvV l3zHQrV4xDfMRnOesm1DrHjaZb5KC3e5IxwpxbadW1tNXU8IlbIQj+PkekbC3pLtyMgp G+2dbA04b3a0bWX0dljMRw+uV32lBUVYGsP2CSck5OBHA5X3sddsHNKXm8O5EYr11zaO Ihg6aRgdOFrGsLctbfBLY5LUePkRiPFcyrH92kPAXSlbqOH4N2xJaDqjmuh0R9eFc2JH 9Eow== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=IQ8lRqhl; 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 f7si1213626ejt.155.2019.10.25.06.55.40; Fri, 25 Oct 2019 06:56:04 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=IQ8lRqhl; 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 S2502418AbfJXNM4 (ORCPT + 99 others); Thu, 24 Oct 2019 09:12:56 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:43422 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393478AbfJXNM4 (ORCPT ); Thu, 24 Oct 2019 09:12:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Ytz4euQ3Q9IiQz4tzDOyqx9l5irsf3dHQZgptwpBWK4=; b=IQ8lRqhl5fUKjdfhzlK2LtcFbT ADtwLGl+3iKxddWBK8Tla9MBG84wPpzPvgJOMdMkgp7fyM1UvasRb742v4912vRIUM0v4ntKXfvrr 0FXECfgafbisrvDHiF+eb/hyEdWJCGyvhRFV+YGD5U/tSTegRmptZ9bHLpG1ohFMPrYj/AkKduclU gG6uyXAOCEsXDRjo2wTpFO0EHREP0idSNbpJofcTFCuZtVx5LXYEGsPIs0uUjN7/7tF4jBW71Dp1L OZZf5qqSL2/j0rdyCSCz/32qXI7cnab27HRgxXsLK0Ry73JygnlTWgfguNcMYXUgk12NuQmKgfPre BaVZk9Zw==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1iNcv8-0004bG-FR; Thu, 24 Oct 2019 13:12:54 +0000 Date: Thu, 24 Oct 2019 06:12:54 -0700 From: Matthew Wilcox To: Michal =?iso-8859-1?Q?Such=E1nek?= Cc: Christoph Hellwig , 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 6/8] bdev: add open_finish. Message-ID: <20191024131254.GE2963@bombadil.infradead.org> References: <20191024022232.GB11485@infradead.org> <20191024085514.GI938@kitsune.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191024085514.GI938@kitsune.suse.cz> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 24, 2019 at 10:55:14AM +0200, Michal Such?nek wrote: > On Wed, Oct 23, 2019 at 07:22:32PM -0700, Christoph Hellwig wrote: > > On Wed, Oct 23, 2019 at 02:52:45PM +0200, Michal Suchanek wrote: > > > Opening a block device may require a long operation such as waiting for > > > the cdrom tray to close. Performing this operation with locks held locks > > > out other attempts to open the device. These processes waiting to open > > > the device are not killable. You can use mutex_lock_killable() to fix that.