]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Use the discard iterator rather than MSG_TRUNC
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 3 Dec 2018 20:58:58 +0000 (15:58 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 5 Dec 2018 12:11:12 +0000 (07:11 -0500)
commit89385b26a24538e6ec7b5537c31f199f7e62d070
tree4ac7143b63ba04f02b3dc2c10ede09553f5540ae
parenta599a813f3eea077f5eb675a56abcac41fd9e2aa
SUNRPC: Use the discard iterator rather than MSG_TRUNC

When discarding message data from the stream, we're better off using
the discard iterator, since that will work with non-TCP streams.

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