crypto, splice, net: Make AF_ALG handle sendmsg(MSG_SPLICE_PAGES)
Status from this message: This series was applied to netdev/net-next.git (main)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest10 patches 6 repliesApplied 10/10
- v210 patches 9 repliesSuperseded
- v18 patches 3 repliesSuperseded
Patches in v3 All 10 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | Drop the netfs_ prefix from netfs_extract_iter_to_sg()fs/ fs/ fs/ +1 more | +39 | 0 replies | Applied |
| 2/10 | Fix a couple of spelling mistakesfs/ | +2 | 0 replies | Applied |
| 3/10 | Wrap lines at 80fs/ | +2 | 0 replies | Applied |
| 4/10 | Move netfs_extract_iter_to_sg() to lib/scatterlist.cfs/ include/ include/ +1 more | +274 | 0 replies | Applied |
| 5/10 | crypto: af_alg: Pin pages rather than ref'ing if appropriatecrypto/ include/ | +8 | 1 reply | Applied |
| 6/10 | crypto: af_alg: Use extract_iter_to_sg() to create scatterlistscrypto/ crypto/ crypto/ +2 more | +40 | 1 reply | Applied |
| 7/10 | crypto: af_alg: Indent the loop in af_alg_sendmsg()crypto/ | +27 | 1 reply | Applied |
| 8/10 | crypto: af_alg: Support MSG_SPLICE_PAGEScrypto/ crypto/ crypto/ | +37 | 1 reply | Applied |
| 9/10 | crypto: af_alg: Convert af_alg_sendpage() to use MSG_SPLICE_PAGEScrypto/ | +8 | 1 reply | Applied |
| 10/10 | crypto: af_alg/hash: Support MSG_SPLICE_PAGEScrypto/ crypto/ | +70 | 1 reply | Applied |
Reviews trailers per patch
7 of 10 patches have a Reviewed-by or Acked-by.
| Patch | Simon Horman | Herbert Xu |
|---|---|---|
| 1/10 | ||
| 2/10 | R-b | |
| 3/10 | ||
| 4/10 | ||
| 5/10 | A-b | |
| 6/10 | A-b | |
| 7/10 | A-b | |
| 8/10 | A-b | |
| 9/10 | A-b | |
| 10/10 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next v3 00/10] crypto, splice, net: Make AF_ALG handle sendmsg(MSG_SPLICE_PAGES)
Here are patches to make AF_ALG handle the MSG_SPLICE_PAGES internal sendmsg flag. MSG_SPLICE_PAGES is an internal hint that tells the protocol that it should splice the pages supplied if it can. The sendpage functions are then turned into wrappers around that.
This set consists of the following parts:
(1) Move netfs_extract_iter_to_sg() to somewhere more general and rename it to drop the "netfs" prefix. We use this to extract directly from an iterator into a scatterlist.
(2) Make AF_ALG use iov_iter_extract_pages(). This has the additional effect of pinning pages obtained from userspace rather than taking refs on them. Pages from kernel-backed iterators would not be pinned, but AF_ALG isn't really meant for use by kernel services.
(3) Change AF_ALG still further to use extract_iter_to_sg().
(4) Make af_alg_sendmsg() support MSG_SPLICE_PAGES support and make af_alg_sendpage() just a wrapper around sendmsg(). This has to take refs on the pages pinned for the moment.
(5) Make hash_sendmsg() support MSG_SPLICE_PAGES by simply ignoring it. hash_sendpage() is left untouched to be removed later, after the splice core has been changed to call sendmsg().
I've pushed the patches here also:
https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=sendpage-2-alg
David
ver #3)
- Rebase and deal with fs/cifs/ moving.
- Reimpose the ALG_MAX_PAGES limit in hash_sendmsg() for kernel iters.
- Remove BVEC iter restriction when using MSG_SPLICE_PAGES.
ver #2)
- Put the "netfs_" prefix removal first to shorten lines and avoid checkpatch 80-char warnings.
- Fix a couple of spelling mistakes.
- Wrap some lines at 80 chars.
David Howells (10):
Drop the netfs_ prefix from netfs_extract_iter_to_sg() Fix a couple of spelling mistakes
Wrap lines at 80
Move netfs_extract_iter_to_sg() to lib/scatterlist.c
crypto: af_alg: Pin pages rather than ref'ing if appropriate
crypto: af_alg: Use extract_iter_to_sg() to create scatterlists
crypto: af_alg: Indent the loop in af_alg_sendmsg()
crypto: af_alg: Support MSG_SPLICE_PAGES
crypto: af_alg: Convert af_alg_sendpage() to use MSG_SPLICE_PAGES
crypto: af_alg/hash: Support MSG_SPLICE_PAGES
crypto/af_alg.c | 181 +++++++++++-------------- crypto/algif_aead.c | 38 +++--- crypto/algif_hash.c | 110 ++++++++++------ crypto/algif_skcipher.c | 10 +- fs/netfs/iterator.c | 266 ------------------------------------- fs/smb/client/smb2ops.c | 4 +- fs/smb/client/smbdirect.c | 2 +- include/crypto/if_alg.h | 7 +- include/linux/netfs.h | 4 - include/linux/uio.h | 5 + lib/scatterlist.c | 269 ++++++++++++++++++++++++++++++++++++++ 11 files changed, 451 insertions(+), 445 deletions(-)