diff options
| author | Paulo Alcantara <pc@manguebit.org> | 2026-10-28 23:15:18 -0300 |
|---|---|---|
| committer | Paulo Alcantara <pc@manguebit.org> | 2026-11-11 13:51:10 -0300 |
| commit | f8ea398448ce4adf32493649ab6665ab1f858d10 (patch) | |
| tree | ca6625294ef6a744c6b7e6db6f6cc8ace1772bb5 /tools/perf/scripts/python | |
| parent | 59d223256f5912263a1a8d2b5b0c5abf9542cf7d (diff) | |
smb: client: let umount -f stop waiting for reconnects on hard mounts
Requests waiting in smb2_reconnect() or cifs_reconnect_tcon() for a
reconnect wait for as long as it takes on hard mounts. With the server
gone, writeback stuck there keeps umount -f hanging in sync_filesystem()
while it waits for that writeback, even though retries of reads and
writes started before it now give up.
Count umount -f attempts per tcon and stop waiting for reconnects, as on
soft mounts, once one is made after the request started waiting, waking
up such requests on all channels right away. Do this for the master
tcon and for the per-user tcons of a multiuser mount, skipping tcons
another mount still uses. Count the references mounts hold on a tcon
for that, rather than relying on tc_count, which internal references
such as a reconnect worker also raise: one per tlink in a superblock's
tree, dropped when the tlink leaves it, and decide under the tree lock so
that pruning or building a tlink can't skew it. Have a handle reopen
started before umount -f stop short of a reconnect it would otherwise
wait for afterwards, and have a retried read check for umount -f again
after backing off. Requests started after umount -f are unaffected.
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
