]> 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)
commitb26e8dd03a05d5d438e05b2e0bdbb21e5cd80ef1
tree0cee0ff3eb28a529dc419aa02400defd3a74ab6f
parent6609306f7a83362d70a6a538c8abda31e5af505e
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