summaryrefslogtreecommitdiff
path: root/lib/net_utils.c
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@kernel.org>2025-01-16 20:05:39 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-17 10:05:39 +0100
commit3996a41b1eeb15bf319d580d8b1b2fb77c577013 (patch)
treea17f7c3bc333991e3f3a7b6613b06e7cd7b41672 /lib/net_utils.c
parent7dc5a84ba5497976124dc51b51f3b3d5f7499160 (diff)
pnfs/flexfiles: retry getting layout segment for reads
commit eb3fabde15bccdf34f1c9b35a83aa4c0dacbb4ca upstream. If ff_layout_pg_get_read()'s attempt to get a layout segment results in -EAGAIN have ff_layout_pg_init_read() retry it after sleeping. If "softerr" mount is used, use 'io_maxretrans' to limit the number of attempts to get a layout segment. This fixes a long-standing issue of O_DIRECT reads failing with -EAGAIN (11) when using flexfiles Client Side Mirroring (CSM). Cc: stable@vger.kernel.org Signed-off-by: Mike Snitzer <snitzer@kernel.org> Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/net_utils.c')
0 files changed, 0 insertions, 0 deletions