]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Simplify dealing with aborted partially transmitted messages
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 31 Aug 2018 14:00:02 +0000 (10:00 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 30 Sep 2018 19:35:14 +0000 (15:35 -0400)
commitafb539c8205d9d132d0930e71e9bc65bbfb4f36e
tree0cee0ff3eb28a529dc419aa02400defd3a74ab6f
parent9d06b26a5d6e9e5f6d2760a6778f284658dc6e42
SUNRPC: Simplify dealing with aborted partially transmitted messages

If the previous message was only partially transmitted, we need to close
the socket in order to avoid corruption of the message stream. To do so,
we currently hijack the unlocking of the socket in order to schedule
the close.
Now that we track the message offset in the socket state, we can move
that kind of checking out of the socket lock code, which is needed to
allow messages to remain queued after dropping the socket lock.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/xprtsock.c