nvme-tcp: don't use sendpage for SLAB pages
authorMikhail Skorzhinskii <mskorzhinskiy@solarflare.com>
Mon, 8 Jul 2019 10:31:29 +0000 (12:31 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 9 Jul 2019 21:18:09 +0000 (14:18 -0700)
commit37c15219599f7a4baa73f6e3432afc69ba7cc530
tree611be0f9375e9b7982bc1ccc42fd0e76ae5f21d7
parent958f2a0f8121ae36a5cbff383ab94fadf1fba5eb
nvme-tcp: don't use sendpage for SLAB pages

According to commit a10674bf2406 ("tcp: detecting the misuse of
.sendpage for Slab objects") and previous discussion, tcp_sendpage
should not be used for pages that is managed by SLAB, as SLAB is not
taking page reference counters into consideration.

Signed-off-by: Mikhail Skorzhinskii <mskorzhinskiy@solarflare.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/tcp.c