diff options
author | Ofir Gal <[email protected]> | 2024-07-18 11:45:14 +0300 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2024-07-28 16:47:52 -0600 |
commit | 7960af373ade3b39e10106ef415e43a1d2aa48c6 (patch) | |
tree | f046ac92c1b640ec0bed165273a49d9ca0749a17 /lib/memory-notifier-error-inject.c | |
parent | 6af7331a70b4888df43ec1d7e1803ae2c43b6981 (diff) |
drbd: use sendpages_ok() instead of sendpage_ok()
Currently _drbd_send_page() use sendpage_ok() in order to enable
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 _drbd_send_page() 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 enable MSG_SPLICE_PAGES
solves the issue.
Acked-by: Christoph Böhmwalder <[email protected]>
Signed-off-by: Ofir Gal <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions