SUNRPC: Fix TCP receive code on archs with flush_dcache_page()
authorTrond Myklebust <trondmy@gmail.com>
Thu, 3 Jan 2019 14:04:45 +0000 (09:04 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 8 Jan 2019 17:44:51 +0000 (12:44 -0500)
commit6a829eb8619fbdde6d7d627ad582fe119805f39d
treeed35a8545101f3c88de6142f16455e3603a66624
parent6e17f58c486d9554341f70aa5b63b8fbed07b3fa
SUNRPC: Fix TCP receive code on archs with flush_dcache_page()

After receiving data into the page cache, we need to call flush_dcache_page()
for the architectures that define it.

Fixes: 277e4ab7d530b ("SUNRPC: Simplify TCP receive code by switching...")
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: stable@vger.kernel.org # v4.20
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtsock.c