diff options
| author | Neil Brown <neilb@cse.unsw.edu.au> | 2003-05-20 06:20:17 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-05-20 06:20:17 -0700 |
| commit | 667c89923df15f196ec578603016f45fb697fe6d (patch) | |
| tree | 997e5efe9b6864b06dcf33dbb7068bef2648758f /include/linux | |
| parent | 4690a87a5cd54d3b520c067b98f8cd26a95c57e7 (diff) | |
[PATCH] kNFSd: Make sure an RPC socket is closed immediately when a server write fails.
The check for "write was incomplete" is not atomic with the actual write,
so a second write could slip in after a partial write to a tcp socket
and this will cause problems.
So we move the locking out a bit, and test if the socket has
been deleted (SK_DEAD) between getting the lock and trying
to send.
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
