From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5E28C262FD0; Thu, 26 Mar 2026 05:34:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774503244; cv=none; b=Y9emtgk6o/gQcgadHM4BV52D12foVEEb0PF36rdDf/azVhyiqKMZULmu2JAGR/caI35xAIRyEh3SYyighP1479n55XN63yr1fzKFZ6crzaYEhfOQrTy5bCVTwQQiAhoXpTwWrVZtDLKv0D6If/otGVQWhOQtM2J9CQ5bOf4mkAk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774503244; c=relaxed/simple; bh=5MTA2DPMYyZniXlYbofp7xzCbU3fURObtreH4bfCMFg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eQMhav9k90IYCYucDj61fo91IjOf4Ih7Al8ch3tbrv4Tf31iV9YvHV66kdnqqv+RwPLueotCm4jsqP6OBkzWcF5B4O7gDflrInwVJMsZCmmQfssL9dPkzpNgdVssfj5pp0diEYi7nRqSzM6HCwhI4mAxCwdjSClj6rZ0XH5AuHg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 9886168C4E; Thu, 26 Mar 2026 06:33:59 +0100 (CET) Date: Thu, 26 Mar 2026 06:33:59 +0100 From: Christoph Hellwig To: Chuck Lever Cc: Christoph Hellwig , Chuck Lever , Jeff Layton , Amir Goldstein , NeilBrown , Olga Kornievskaia , Dai Ngo , Tom Talpey , Carlos Maiolino , linux-nfs@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 1/7] exportfs: split out the ops for layout-based block device access Message-ID: <20260326053359.GA23157@lst.de> References: <20260323070746.2940140-1-hch@lst.de> <20260323070746.2940140-2-hch@lst.de> <1fbdc5d9-d95c-4d1a-816e-028ffd1231b0@app.fastmail.com> Precedence: bulk X-Mailing-List: linux-xfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1fbdc5d9-d95c-4d1a-816e-028ffd1231b0@app.fastmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) On Mon, Mar 23, 2026 at 09:39:48AM -0400, Chuck Lever wrote: > > - sb->s_export_op->commit_blocks && > > + if (bops->map_blocks && bops->commit_blocks && > > sb->s_bdev && > > sb->s_bdev->bd_disk->fops->pr_ops && > > sb->s_bdev->bd_disk->fops->get_unique_id) > > block_ops itself is NULL for any filesystem that does not provide > block layout support (everything other than XFS today). > > When an admin exports such a filesystem with pNFS enabled > (NFSEXP_PNFS), svc_export_parse() calls nfsd4_setup_layout_type(), > and bops->get_uuid dereferences a NULL pointer. > > Something like the following would restore the original behavior: > > if (bops && bops->get_uuid && ...) Yes, I'll fix it up.