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)
commitb76a5afdce6c6dacfbd51863b31b3d7cc61ca21e
tree4ac7143b63ba04f02b3dc2c10ede09553f5540ae
parent26781eab48ece79000ffc4e69be402f2524e1137
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