summaryrefslogtreecommitdiff
path: root/rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorNamjae Jeon <linkinjeon@kernel.org>2026-06-18 21:54:43 +0900
committerSteve French <stfrench@microsoft.com>2026-06-22 20:15:04 -0500
commit411398c9a1414094f4e52c8893ef55ae3c61bf2a (patch)
tree65f153914f05be77d87134b67510e0ee99f71248 /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
parent2145945feb2c27d8e20f113ef81dc373631c4f05 (diff)
ksmbd: keep common response iovecs in the work item
Most SMB responses need no more than four kvec entries, but every work item currently allocates a separate four-entry array and frees it after the response is sent. Embed the common array in struct ksmbd_work and allocate a larger array only when a response exceeds the inline capacity. This removes one allocation and one free from the common request path while preserving support for larger compound and read responses. Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions