diff options
| author | Paulo Alcantara <pc@manguebit.org> | 2026-10-29 13:40:39 -0300 |
|---|---|---|
| committer | Paulo Alcantara <pc@manguebit.org> | 2026-11-09 12:35:39 -0300 |
| commit | 274dec866f0882ee5a0f3d58d4d5c31af0c02417 (patch) | |
| tree | 75f6d7dffa0d1f232a2e3fff724c42434c42b8e5 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | adeb82ac455582eac1894d1ca1b0aba110a65cc3 (diff) | |
smb: client: don't give up writeback on the first replayable error
Read and write retries follow the hard and retrans mount options, and
mounts are soft with no retrans by default. For writeback this means
that a single replayable error, e.g. a reconnect while sending, fails
the subrequest and netfs ends writeback with its folios clean: the data
is gone, possibly long after write(2) succeeded, with only fsync(2) left
to notice. NFS soft mounts, by comparison, wait minutes for a server to
answer before failing a request.
Keep retrying writeback on replayable errors, with exponential backoff:
forever on hard mounts, and on soft mounts for max(3, retrans) echo
intervals from the first failure - 3 minutes by default, the time after
which a silent server is considered unresponsive. The window applies to
each write sent to the server, not to the whole writeback. umount -f or
a shutdown still stops it right away. Direct and unbuffered writes,
whose callers get the error, keep following the mount options.
Fixes: 2c1238a7477a ("cifs: make retry logic in read/write path consistent with other paths")
Signed-off-by: Paulo Alcantara <pc@manguebit.org>
Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
