diff options
| author | Iván Ezequiel Rodriguez <ivanrwcm25@gmail.com> | 2026-10-28 15:12:28 -0300 |
|---|---|---|
| committer | Paulo Alcantara <pc@manguebit.org> | 2026-11-09 12:35:24 -0300 |
| commit | 62869ecb3aeca670b86058387e7533a33524b95b (patch) | |
| tree | d1cd11b224c3b6f1373eb08f7bc2ae97e990427d /tools/perf/scripts/python/task-analyzer.py | |
| parent | 0e85145af984f7cae2aadaa694cb8612009027ac (diff) | |
netfs: preserve prepare_write errno on reissue
prepare_write() may call netfs_prepare_write_failed() (FAILED + errno)
before write_retry calls netfs_reissue_write(). Clearing subreq->error
to 0 for a clean I/O reissue (82e8885bd763) then makes
netfs_do_issue_write() terminate with 0. The collector copies
front->error into stream->error and mapping_set_error(), which ignores
0, so writeback failure is silent.
Skip clearing error when NETFS_SREQ_FAILED is already set;
do_issue_write() already terminates FAILED subrequests.
Fixes: 82e8885bd763 ("netfs: when subreq is marked for retry, do not check if it faced an error")
Signed-off-by: Iván Ezequiel Rodriguez <ivanrwcm25@gmail.com>
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/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
