Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp762886rdb; Tue, 5 Dec 2023 21:44:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IEifDV6N86B24QNUBpR9Q7h0C8fjf01xXmxvFrb0uj5/JUkjdBdLML2OZOyJ7MVYoqajMFq X-Received: by 2002:a05:6871:7988:b0:1fa:fff7:4a15 with SMTP id pb8-20020a056871798800b001fafff74a15mr312912oac.9.1701841482017; Tue, 05 Dec 2023 21:44:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701841481; cv=none; d=google.com; s=arc-20160816; b=Xi0nu5hOJyxOT8jY4tlGjDpJQpgxz93LNJctQJy+p+1Ry+h0pOlsfjJfaVMTq2tOzf wapVSQhtqlqrGuY2tZeyriAZalnUQOmPLlTE+Jo4XcUSmLAlPqIXeslcdpMTyn6NHaee gfzf72OsGMSP8avlJLfZ5QRhjr5MTs8rrmMvaoRJmRl8bUffKdeg8yS7cxZc7GIqnFgj vLaAlivTtXQRUCX2E0TLtwgzvN1nmNCyAzxUdQ2pHwWGW5XgGEdOgviWMk+aCzHdBwgI iW28KapFaTJ1bherGJ8pGEU3HmdnueSOMMjOF4qaAaUFmtrb9nOA/4HV4m+6cKGSAbcd D1EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jSXMUEwEKlogqLJouY8bxkG+ev/shBNNrzwfarR0D18=; fh=NJKEtfqXUQbYn4ZYvqYRQES6G3uJXVw+Ugj0L560IAo=; b=S12GZAYhFLofAbdvGUrk4K1GyhTD8FQsorJVWwxyquOiI4fkYoY58C/I254PorSlQW A50FRuaSF0pbCeX3RN1wQS7O+YiX+lbtduTbgy3WXOFxRRCr1LDA+ZOihDldbW5XUN/H RD2D/s7JB7f/N0uXCTmqK2qEHfQxQ0bKAr5UMsGsqHcy5KyAmLBMUaKnWX5kgfdA90qx U5pvaT3ftD130iIiZ4sTceTRhBF00pxIL3S5PUFjPGWJEAhmSmXrt5VmHPVOsppMRzYa wCPDnyZ2O17zmSfrEp+F+0dOZN9KOJqO06xnYhnq659VIi4fwCHlGuMA8dsKlX4cKqVc 8Opg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=NDuZEcsn; spf=pass (google.com: domain of linux-nfs+bounces-356-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-356-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id q7-20020a634307000000b005c625d44bd5si10547630pga.281.2023.12.05.21.44.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 21:44:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-356-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=NDuZEcsn; spf=pass (google.com: domain of linux-nfs+bounces-356-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-356-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C2324B2105A for ; Wed, 6 Dec 2023 05:44:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57796EAFD; Wed, 6 Dec 2023 05:44:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="NDuZEcsn" X-Original-To: linux-nfs@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CBACD5A for ; Tue, 5 Dec 2023 21:44:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=jSXMUEwEKlogqLJouY8bxkG+ev/shBNNrzwfarR0D18=; b=NDuZEcsn+rw6YFX+llrunbvXw2 M8OrR3doFjw/lvcxu8unHx9moAzv+LATf/q9hPJN/WLvhiaFjLgNmm7UBEpEO1sfo4frJrEf/fDuZ CIl8RSi4FngIU4eQcaqI5SSc7AuSYyHvt9AlC4oLEM1js5WVqk/RyMR09KUv+ewxPoT2G1y+N3L8O c39NwCtZWlHrW6TaRSYFbezbzzWUhBcJF0kkTSqN6TawoU41KLCzjkHjh3EHUIgzxhnaUjXRx7O0G vQ1nYUChg8w4o/Dt7MqBLaT7gqvuItpSXC4S7cuIkEj9vUsr5FqfNLTH/5rIaoO9WrGVFdeqr0k99 IO2G/vkA==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1rAkhv-0097ep-28; Wed, 06 Dec 2023 05:44:27 +0000 Date: Tue, 5 Dec 2023 21:44:27 -0800 From: Christoph Hellwig To: Benjamin Coddington Cc: trond.myklebust@hammerspace.com, anna@kernel.org, linux-nfs@vger.kernel.org Subject: Re: [PATCH 2/2] pnfs/blocklayout: Don't add zero-length pnfs_block_dev Message-ID: References: <33e0ddfaad92ca5d6b0a4d1cc7541cf5a7480d7a.1701788600.git.bcodding@redhat.com> <53e2ab90d83d4cdc15f1b48b2eb671ad26f54a6a.1701788600.git.bcodding@redhat.com> Precedence: bulk X-Mailing-List: linux-nfs@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: <53e2ab90d83d4cdc15f1b48b2eb671ad26f54a6a.1701788600.git.bcodding@redhat.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Tue, Dec 05, 2023 at 10:05:02AM -0500, Benjamin Coddington wrote: > We noticed a SCSI device that refused to allow READ CAPACITY when the > device had a PR with exclusive access, registrants only. The result of > this situation is that the blocklayout driver adds a pnfs_block_dev of zero > length which always fails the offset_in_map tests. Instead of continuously > trying to do pNFS for this case, just mark the device as unavailable which > will allow the client to fallback to the MDS for the duration of > PNFS_DEVICE_RETRY_TIMEOUT. Looks good: Reviewed-by: Christoph Hellwig