diff options
author | Christian Schoenebeck <linux_oss@crudebyte.com> | 2022-07-15 23:33:56 +0200 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2022-10-05 07:05:41 +0900 |
commit | 60ece0833b6c2bc1465eb2803fec20b670e2ee93 (patch) | |
tree | 544ee183389b5867645c4bd9f3183b865a0f745e /net/dsa/tag_hellcreek.c | |
parent | 01d205d936ae18532e14814808592b926aacc6d5 (diff) |
net/9p: allocate appropriate reduced message buffers
So far 'msize' was simply used for all 9p message types, which is far
too much and slowed down performance tremendously with large values
for user configurable 'msize' option.
Let's stop this waste by using the new p9_msg_buf_size() function for
allocating more appropriate, smaller buffers according to what is
actually sent over the wire.
Only exception: RDMA transport is currently excluded from this message
size optimization - for its response buffers that is - as RDMA transport
would not cope with it, due to its response buffers being pulled from a
shared pool. [1]
Link: https://lore.kernel.org/all/Ys3jjg52EIyITPua@codewreck.org/ [1]
Link: https://lkml.kernel.org/r/3f51590535dc96ed0a165b8218c57639cfa5c36c.1657920926.git.linux_oss@crudebyte.com
Signed-off-by: Christian Schoenebeck <linux_oss@crudebyte.com>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Diffstat (limited to 'net/dsa/tag_hellcreek.c')
0 files changed, 0 insertions, 0 deletions