diff options
author | Ofir Gal <ofir.gal@volumez.com> | 2024-07-18 11:45:13 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-07-28 16:47:52 -0600 |
commit | 6af7331a70b4888df43ec1d7e1803ae2c43b6981 (patch) | |
tree | 8e8eb1b6f91909797cd5fd9755645fe10c46a415 /drivers/block/drbd | |
parent | 23a55f4492fcf868d068da31a2cd30c15f46207d (diff) |
nvme-tcp: use sendpages_ok() instead of sendpage_ok()
Currently nvme_tcp_try_send_data() use sendpage_ok() in order to disable
MSG_SPLICE_PAGES, it check the first page of the iterator, the iterator
may represent contiguous pages.
MSG_SPLICE_PAGES enables skb_splice_from_iter() which checks all the
pages it sends with sendpage_ok().
When nvme_tcp_try_send_data() sends an iterator that the first page is
sendable, but one of the other pages isn't skb_splice_from_iter() warns
and aborts the data transfer.
Using the new helper sendpages_ok() in order to disable MSG_SPLICE_PAGES
solves the issue.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Ofir Gal <ofir.gal@volumez.com>
Link: https://lore.kernel.org/r/20240718084515.3833733-3-ofir.gal@volumez.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/drbd')
0 files changed, 0 insertions, 0 deletions