summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorBenjamin Coddington <bcodding@redhat.com>2024-11-22 10:11:12 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-05 14:03:09 +0100
commitbff8460376e53de3f549e90666f9c0e9d2c6c981 (patch)
treea7e881843e9b76ed4fd8b8409e647eb45a86dbd8 /block
parentfaa4bacfaeed827a4ca8cb8529a3ce65a9e8ef46 (diff)
downloadlinux-bff8460376e53de3f549e90666f9c0e9d2c6c981.tar.gz
linux-bff8460376e53de3f549e90666f9c0e9d2c6c981.tar.bz2
linux-bff8460376e53de3f549e90666f9c0e9d2c6c981.zip
nfs/blocklayout: Limit repeat device registration on failure
[ Upstream commit 614733f9441ed53bb442d4734112ec1e24bd6da7 ] Every pNFS SCSI IO wants to do LAYOUTGET, then within the layout find the device which can drive GETDEVINFO, then finally may need to prep the device with a reservation. This slow work makes a mess of IO latencies if one of the later steps is going to fail for awhile. If we're unable to register a SCSI device, ensure we mark the device as unavailable so that it will timeout and be re-added via GETDEVINFO. This avoids repeated doomed attempts to register a device in the IO path. Add some clarifying comments as well. Fixes: d869da91cccb ("nfs/blocklayout: Fix premature PR key unregistration") Signed-off-by: Benjamin Coddington <bcodding@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions