Files
Benjamin Coddington f6a1bb6de4 nfs/blocklayout: Limit repeat device registration on failure
[ Upstream commit 614733f944 ]

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: d869da91cc ("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>
2024-12-05 13:54:33 +01:00
..
2024-07-18 09:50:08 +02:00
2024-11-17 15:09:53 +01:00
2024-12-05 13:54:08 +01:00
2024-10-22 15:51:20 +02:00
2024-12-05 13:53:45 +01:00
2024-05-28 11:52:53 +02:00
2024-05-28 11:52:49 +02:00
2024-08-21 22:32:58 +02:00
2024-05-28 11:52:45 +02:00
2024-10-10 12:03:15 +02:00
2024-09-06 11:08:58 -07:00
2024-07-18 09:50:08 +02:00
2024-10-10 12:04:07 +02:00
2024-05-24 13:34:07 +02:00