diff options
| author | Paulo Alcantara <pc@manguebit.org> | 2026-10-28 20:35:11 -0300 |
|---|---|---|
| committer | Paulo Alcantara <pc@manguebit.org> | 2026-11-09 12:35:39 -0300 |
| commit | 15ea186abbcd04157c62e0901701870b812bb2bd (patch) | |
| tree | d214ef4c9e2b1dda8f73ca68150c66016a8b8842 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 1d4fcbfad120ddc30b81651f12096bfc84052f9a (diff) | |
smb: client: don't block dying tasks waiting for writeback on close
cifs_flush() waits uninterruptibly for the writeback it starts. A task
that gets killed while closing a file on a hard mount with an
unresponsive server is stuck in D state until the server comes back. It
also consumes any writeback error for a caller that is about to exit,
hiding it from everyone else.
Wait killably instead. If the closer gets killed, stop waiting and leave
the error bits in the mapping for others to see; writeback already in
flight completes on its own. Don't wait at all, nor check for errors,
if it is already dying.
This is also needed before letting dying tasks issue their writes from a
worker, which would otherwise make them wait for every one of them.
Fixes: d3f1322af8f8 ("cifs: wait for writeback to complete in cifs_flush")
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
