summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPaulo Alcantara <pc@manguebit.org>2026-11-01 19:59:55 -0300
committerPaulo Alcantara <pc@manguebit.org>2026-11-09 12:35:30 -0300
commitd88a0c3a96fd6d7228d04532cecb23f23676aa2d (patch)
treed2d4182f84ecda938af81a3a3b3e2cb0cc2bcd5f /tools/perf/scripts/python
parent62869ecb3aeca670b86058387e7533a33524b95b (diff)
netfs: keep the prepare_read errno when abandoning read retries
When ->prepare_read() fails while retrying a read, netfs_retry_read_subrequests() marks the subrequest failed and abandons the rest, which overwrites the error of every failed subrequest with -ENOMEM. The reader then gets -ENOMEM for e.g. a handle that couldn't be reopened (-EHOSTDOWN, -ENOENT), a credit wait interrupted by a signal (-ERESTARTSYS) or umount -f (-EIO). The first pass doesn't have this problem, as netfs_cancel_read() keeps the errno. Record the errno of ->prepare_read() in the subrequest and keep the error of subrequests that already failed, using -ENOMEM only for those abandoned while still waiting for a retry. Fixes: ee4cdf7ba857 ("netfs: Speed up buffered reading") Reviewed-by: David Howells <dhowells@redhat.com> Signed-off-by: Paulo Alcantara <pc@manguebit.org> Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions