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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76875C77B75 for ; Fri, 19 May 2023 04:11:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229909AbjESELp (ORCPT ); Fri, 19 May 2023 00:11:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229694AbjESELl (ORCPT ); Fri, 19 May 2023 00:11:41 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 319C010CF; Thu, 18 May 2023 21:11:40 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id BAD3468C4E; Fri, 19 May 2023 06:11:36 +0200 (CEST) Date: Fri, 19 May 2023 06:11:36 +0200 From: Christoph Hellwig To: Theodore Ts'o Cc: Christoph Hellwig , Jens Axboe , Al Viro , Christian Brauner , "Darrick J. Wong" , Jan Kara , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org Subject: Re: introduce bdev holder ops and a file system shutdown method v2 Message-ID: <20230519041136.GA10931@lst.de> References: <20230518042323.663189-1-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Thu, May 18, 2023 at 10:00:12PM -0400, Theodore Ts'o wrote: > On Thu, May 18, 2023 at 06:23:09AM +0200, Christoph Hellwig wrote: > > Hi all, > > > > this series fixes the long standing problem that we never had a good way > > to communicate block device events to the user of the block device. > > > > It fixes this by introducing a new set of holder ops registered at > > blkdev_get_by_* time for the exclusive holder, and then wire that up > > to a shutdown super operation to report the block device remove to the > > file systems. > > Thanks for working on this! Is there going to be an fstest which > simulates a device removal while we're running fsstress or some such, > so we can exercise full device removal path? So the problem with xfstests is that there isn't really any generic way to remove a block device, and even less so to put it back. xfstests has some scsi_debug based tests, maybe I can cook something up for that. My testing has been with nvme, so another option would be to add nvme-loop support to xfstests and use that. I'll see what I can do.